X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d4b633bfc50188f36e3c4a8b2b99c3a0e6a7f12e..8a8e23ef3cb3e7ffb937c75ab1bdeee9ef5b3bf0:/lib/log.php?ds=sidebyside diff --git a/lib/log.php b/lib/log.php index ae4253c0..25ed75cb 100644 --- a/lib/log.php +++ b/lib/log.php @@ -36,7 +36,7 @@ function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array()) $sUserAgent = $_SERVER['HTTP_USER_AGENT']; else $sUserAgent = ''; $sSQL = 'insert into new_query_log (type,starttime,query,ipaddress,useragent,language,format,searchterm)'; - $sSQL .= ' values ('. + $sSQL .= ' values ('; $sSQL .= join(',', $oDB->getDBQuotedList(array( $sType, $hLog[0], @@ -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) {