diff --git a/app/Models/Address.php b/app/Models/Address.php index d103833..bfb3585 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -859,6 +859,6 @@ class Address extends Model */ public function session(string $type): ?string { - return ($this->exists && ($x=$this->system->sessions->where('id',$this->zone_id)->first())) ? $x->pivot->{$type} : NULL; + return ($this->exists && ($x=$this->system->sessions->where('id',$this->zone_id)->first())) ? ($x->pivot->{$type} ?: '') : NULL; } }