diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index fe36c53b6a4..424e0b07fa4 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -60,7 +60,10 @@ function timer_read($name) { $stop = (float)$usec + (float)$sec; $diff = round(($stop - $timers[$name]['start']) * 1000, 2); - return $timers[$name]['time'] + $diff; + if (isset($timers[$name]['time'])) { + $diff += $timers[$name]['time']; + } + return $diff; } /**