mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Handle zero in getCol()
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user