Commit bdfa735e authored by drumm's avatar drumm
Browse files

#47535 by Wesley Tanaka and nickl. Fix a PHP notice with timers.

parent 7617a16f
......@@ -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;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment