From: Sandor Nagy Date: Wed, 26 Jun 2019 22:26:36 +0000 (+0200) Subject: lib/log.php broke after switch to PDO DB abstraction X-Git-Tag: v3.4.0~31^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0115b655bdcb294550548149e056f695101ba1d4 lib/log.php broke after switch to PDO DB abstraction --- diff --git a/lib/log.php b/lib/log.php index ae4253c0..43e753f0 100644 --- a/lib/log.php +++ b/lib/log.php @@ -48,7 +48,7 @@ function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array()) $hLog[3] ))); $sSQL .= ')'; - $oDB->query($sSQL); + $oDB->exec($sSQL); } return $hLog; @@ -67,7 +67,7 @@ function logEnd(&$oDB, $hLog, $iNumResults) $sSQL .= ' where starttime = '.$oDB->getDBQuoted($hLog[0]); $sSQL .= ' and ipaddress = '.$oDB->getDBQuoted($hLog[1]); $sSQL .= ' and query = '.$oDB->getDBQuoted($hLog[2]); - $oDB->query($sSQL); + $oDB->exec($sSQL); } if (CONST_Log_File) {