diff --git a/app/Jobs/AddressIdle.php b/app/Jobs/AddressIdle.php index f3683f2..b1f8286 100644 --- a/app/Jobs/AddressIdle.php +++ b/app/Jobs/AddressIdle.php @@ -59,7 +59,7 @@ class AddressIdle implements ShouldQueue continue; // Validate that the last seen was infact that long ago - if ($ao->system->last_seen->greaterThan($age)) + if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age)) continue; Log::info(sprintf('%s:- Delisting [%s], not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.delist'))); @@ -123,7 +123,7 @@ class AddressIdle implements ShouldQueue continue; // Validate that the last seen was infact that long ago - if ($ao->system->last_seen->greaterThan($age)) + if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age)) continue; Log::info(sprintf('%s:- Marking [%s] as DOWN, not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.down'))); @@ -168,7 +168,7 @@ class AddressIdle implements ShouldQueue continue; // Validate that the last seen was infact that long ago - if ($ao->system->last_seen->greaterThan($age)) + if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age)) continue; $contact = FALSE;