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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user