Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions WatchYourLAN/WatchYourLAN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down