Fix notifications
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
public function __get($attribute)
|
||||
{
|
||||
return $this->notifications[0]->{$attribute};
|
||||
return !empty($this->notifications) ? $this->notifications[0]->{$attribute} : null;
|
||||
}
|
||||
|
||||
public function __call($name, $arguments)
|
||||
|
Reference in New Issue
Block a user