]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/DB.php
Merge pull request #1578 from lonvia/docs-installation-support
[nominatim.git] / lib / DB.php
index ddc0932c871e123214e3d373b7a33e9abcaa193a..e4aa4349dbf7dc4a55fd43417a0ff62448aadc36 100644 (file)
@@ -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) {