X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b612b9942109a08c6ff8f49e3327e015fec08e67..0daf2d5cbf2e7ec558b5bc4dfe511e0f8f2d76b2:/lib/DB.php diff --git a/lib/DB.php b/lib/DB.php index 51fd49fc..fe2529b2 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) {