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

5.x
Neil Drumm 2006-09-06 06:43:03 +00:00
parent 7617a16f85
commit bdfa735e1c
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
/**