From ef2e208fde98442bd72f1edff1c190dcc2f7e126 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 18 Jun 2024 18:01:32 +0930 Subject: [PATCH] Fix for test failing introduced in df28732 --- app/Models/Address.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Address.php b/app/Models/Address.php index 456bf3a..c431ad4 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -742,7 +742,7 @@ class Address extends Model public function getIsDefaultRouteAttribute(): bool { - return ! is_null($this->session('default')); + return (! is_null($x=$this->session('default'))) && $x; } public function getIsDownAttribute(): bool @@ -752,7 +752,7 @@ class Address extends Model public function getIsHostedAttribute(): bool { - return ! is_null($this->getPassSessionAttribute()); + return strlen($this->getPassSessionAttribute()) > 0; } public function getIsHoldAttribute(): bool