From 928f002e77d0b520f5132e560f7a12cbc9289280 Mon Sep 17 00:00:00 2001 From: Crypta Eve Date: Wed, 22 Jan 2025 15:56:01 +1100 Subject: [PATCH] fix: check for ivalid route status --- src/Jobs/Middleware/CheckEsiRouteStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/Middleware/CheckEsiRouteStatus.php b/src/Jobs/Middleware/CheckEsiRouteStatus.php index d0a29536..e691ba25 100644 --- a/src/Jobs/Middleware/CheckEsiRouteStatus.php +++ b/src/Jobs/Middleware/CheckEsiRouteStatus.php @@ -102,7 +102,7 @@ private function isRouteOnline(string $endpoint): bool $data = $response->getBody(); foreach($data as $path) { - if ($path->route == $endpoint) { + if (property_exists($path, 'route') && $path->route == $endpoint) { return $path->status ?? 'invalid'; } }