Commit 49e79d9c authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4116 (Health Check high logged errors inaccurate with xdebug installed)

parent 87b4d660
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ class Hook_health_check_stability extends Hook_Health_Check
                }

                $matches = array();
                if (preg_match('#^\[([^\[\]]*)\] #', $line, $matches) != 0) {
                if ((preg_match('#^\[([^\[\]]*)\] #', $line, $matches) != 0) && (preg_match('#^\[([^\[\]]*)\] PHP\s+(Stack trace:|\d+\. )#', $line) == 0)/*xdebug*/) {
                    $timestamp = @strtotime($matches[1]);
                    if (($timestamp !== false) && ($timestamp > $threshold_time)) {
                        $dates[] = $timestamp;