]> git.openstreetmap.org Git - nominatim.git/commitdiff
correct start time computation
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Apr 2014 19:12:14 +0000 (21:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Apr 2014 19:12:14 +0000 (21:12 +0200)
fixes #125

lib/log.php

index b08f5383df26491f50492cd2ff1ae7104db94b41..37d83c4771fdb410a46290de8cb60cc8eedb1346 100644 (file)
@@ -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'];