X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9cfd891fb981a2a4241e24c4f3c4b5519eceda48..3b22b9911b12048f6a2dadefa442cb1f1c7edd3d:/lib/DB.php diff --git a/lib/DB.php b/lib/DB.php index ddc0932c..e4aa4349 100644 --- a/lib/DB.php +++ b/lib/DB.php @@ -135,7 +135,7 @@ class DB try { $stmt = $this->getQueryStatement($sSQL, $aInputVars, $sErrMessage); - while ($val = $stmt->fetchColumn(0)) { // returns first column or false + while (($val = $stmt->fetchColumn(0)) !== false) { // returns first column or false $aVals[] = $val; } } catch (\PDOException $e) {