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;