X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db3ced17bbfff00411f506d8c84419c875959d5e..6f0eb1797000bb8ee9faa0657917803ed5bd50a6:/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;