X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..474418f03cf3a1dcb742a526a455f7721d5d0af6:/lib-php/log.php diff --git a/lib-php/log.php b/lib-php/log.php index 25ed75cb..b6d7a1a9 100644 --- a/lib-php/log.php +++ b/lib-php/log.php @@ -1,19 +1,35 @@ getDBQuotedList(array( @@ -60,7 +78,9 @@ function logEnd(&$oDB, $hLog, $iNumResults) if (CONST_Log_DB) { $aEndTime = explode('.', $fEndTime); - if (!$aEndTime[1]) $aEndTime[1] = '0'; + if (!$aEndTime[1]) { + $aEndTime[1] = '0'; + } $sEndTime = date('Y-m-d H:i:s', $aEndTime[0]).'.'.$aEndTime[1]; $sSQL = 'update new_query_log set endtime = '.$oDB->getDBQuoted($sEndTime).', results = '.$iNumResults;