From c878d0f11ea5d71dba8423217782958c492758c8 Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Mon, 6 Mar 2023 12:10:45 +0000 Subject: [PATCH] Fix assignment error with allowed_status_codes in Status() --- jumpapp/classes/Status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpapp/classes/Status.php b/jumpapp/classes/Status.php index a67b6d1..c68afca 100644 --- a/jumpapp/classes/Status.php +++ b/jumpapp/classes/Status.php @@ -83,7 +83,7 @@ class Status { // show an error status in the UI if the response code is in the list of allowed codes. // E.g. the server response with "418 I'm a teapot". $status = $e->getResponse()->getStatusCode(); - if (in_array($status, ((array)$this->site->status->allowed_status_codes ?? []))) { + if (in_array($status, (array)($this->site->status->allowed_status_codes ?? []))) { return self::STATUS_ONLINE; } return self::STATUS_ERROR;