Merge branch 'fix-getcol-zero' of https://github.com/eyusupov/Nominatim into eyusupov-fix-getcol-zero

This commit is contained in:
Sarah Hoffmann
2019-10-28 23:07:28 +01:00

View File

@@ -135,7 +135,7 @@ class DB
try { try {
$stmt = $this->getQueryStatement($sSQL, $aInputVars, $sErrMessage); $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; $aVals[] = $val;
} }
} catch (\PDOException $e) { } catch (\PDOException $e) {