From 451f99c6441666199cddef47c7ac54d68bf642c5 Mon Sep 17 00:00:00 2001 From: mikley Date: Mon, 12 May 2025 10:20:41 +0200 Subject: [PATCH] Update UptimeKuma.php change an === operator to the !== operator. --- UptimeKuma/UptimeKuma.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }