From: Sarah Hoffmann Date: Mon, 21 Apr 2014 19:12:14 +0000 (+0200) Subject: correct start time computation X-Git-Tag: v2.3.0~53 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/7f95590a77d358a246f057f954c33bc8640e3def correct start time computation fixes #125 --- diff --git a/lib/log.php b/lib/log.php index b08f5383..37d83c47 100644 --- a/lib/log.php +++ b/lib/log.php @@ -3,7 +3,7 @@ function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array()) { $aStartTime = explode('.',microtime(true)); - if (!$aStartTime[1]) $aStartTime[1] = '0'; + if (!isset($aStartTime[1])) $aStartTime[1] = '0'; $sOutputFormat = ''; if (isset($_GET['format'])) $sOutputFormat = $_GET['format'];