When we dont have session() details return a blank string instead of null
This commit is contained in:
parent
782acad560
commit
2a50a1d795
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user