From c5f257a60e02df84dc8f3625a7cb7bf5b66f5ff0 Mon Sep 17 00:00:00 2001 From: keithy-t Date: Tue, 9 Jun 2026 15:55:32 +0100 Subject: [PATCH] Update WatchYourLAN.php --- WatchYourLAN/WatchYourLAN.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WatchYourLAN/WatchYourLAN.php b/WatchYourLAN/WatchYourLAN.php index 0ce04d1d1a..be1ca046af 100644 --- a/WatchYourLAN/WatchYourLAN.php +++ b/WatchYourLAN/WatchYourLAN.php @@ -4,7 +4,6 @@ class WatchYourLAN extends \App\SupportedApps implements \App\EnhancedApps { - public $config; //protected $login_first = true; // Uncomment if api requests need to be authed first @@ -29,11 +28,11 @@ public function livestats() $unknown_count = 0; if (is_array($hosts)) { - foreach ($hosts as $key => $host) { - if (isset($host->Known) && $host->Known == 0) { - $unknown_count += 1; + foreach ($hosts as $key => $host) { + if (isset($host->Known) && $host->Known == 0) { + $unknown_count += 1; + } } - } } $data['unknown_count'] = $unknown_count;