X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db3ced17bbfff00411f506d8c84419c875959d5e..70dc4957dc41df7d808ae4acb6c881e80b6348f9:/lib-php/log.php diff --git a/lib-php/log.php b/lib-php/log.php index 25ed75cb..1d567733 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 (!isset($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;