#47535 by Wesley Tanaka and nickl. Fix a PHP notice with timers.
parent
7617a16f85
commit
bdfa735e1c
|
@ -60,7 +60,10 @@ function timer_read($name) {
|
||||||
$stop = (float)$usec + (float)$sec;
|
$stop = (float)$usec + (float)$sec;
|
||||||
$diff = round(($stop - $timers[$name]['start']) * 1000, 2);
|
$diff = round(($stop - $timers[$name]['start']) * 1000, 2);
|
||||||
|
|
||||||
return $timers[$name]['time'] + $diff;
|
if (isset($timers[$name]['time'])) {
|
||||||
|
$diff += $timers[$name]['time'];
|
||||||
|
}
|
||||||
|
return $diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue