TimingsHandler: use weak comparison for stopTiming start check

this could be an int or float, and 0 !== 0.0.
This commit is contained in:
Dylan K. Taylor 2019-12-12 11:48:34 +00:00
parent 6127a02a8b
commit b3cfa5a3a0

View File

@ -168,7 +168,7 @@ class TimingsHandler{
public function stopTiming(){
if(self::$enabled){
if(--$this->timingDepth !== 0 or $this->start === 0){
if(--$this->timingDepth !== 0 or $this->start == 0){
return;
}