From: Sandor Nagy Date: Mon, 9 May 2022 20:00:36 +0000 (+0200) Subject: correct end time computation X-Git-Tag: v4.1.0~38^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/3f306991319e00da949d29cbad7be6ac64199ac5?hp=--cc correct end time computation --- 3f306991319e00da949d29cbad7be6ac64199ac5 diff --git a/lib-php/log.php b/lib-php/log.php index b6d7a1a9..1d567733 100644 --- a/lib-php/log.php +++ b/lib-php/log.php @@ -78,7 +78,7 @@ function logEnd(&$oDB, $hLog, $iNumResults) if (CONST_Log_DB) { $aEndTime = explode('.', $fEndTime); - if (!$aEndTime[1]) { + if (!isset($aEndTime[1])) { $aEndTime[1] = '0'; } $sEndTime = date('Y-m-d H:i:s', $aEndTime[0]).'.'.$aEndTime[1];