diff --git a/UptimeKuma/UptimeKuma.php b/UptimeKuma/UptimeKuma.php index cf8c6851a8..f6c6b9ca26 100644 --- a/UptimeKuma/UptimeKuma.php +++ b/UptimeKuma/UptimeKuma.php @@ -57,12 +57,12 @@ public function livestats() ]; foreach ($lines as $line) { - if (strlen($line) === 0 || strpos($line, '#') === 0) { + if (strlen($line) === 0 || strpos($line, '#') !== 0) { // If the line is empty or is a comment we can skip it continue; } - if (strpos($line, 'monitor_status') === 0) { + if (strpos($line, 'monitor_status') !== 0) { // If the line is a metric but not a monitor we can ignore it continue; }