1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 19:54:24 +02:00

Fix issue processwire/processwire-issues#316 - legacy db API variable class and debug timers in PHP7 producing unnecessary notice

This commit is contained in:
Ryan Cramer
2017-07-14 10:39:54 -04:00
parent 0fe94521fe
commit 659391a4c3
2 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ class Debug {
$startTime = -microtime(true);
if(!$key) {
$key = (string) $startTime;
while(isset(self::$timers[$key])) $key .= ".";
while(isset(self::$timers[$key])) $key .= "0";
}
self::$timers[(string) $key] = $startTime;
$value = $key;