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