X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..4fa349315b59bae789c77cbf2ffa0021d1231d64:/lib-php/log.php?ds=sidebyside 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;