Various changes including contact messages in database, contact message notifications, notification emails, bugfixes and more
This commit is contained in:
@@ -23,6 +23,13 @@
|
||||
|
||||
public function __get($attribute)
|
||||
{
|
||||
if($attribute == 'unread') {
|
||||
foreach ($this->notifications as $notification) {
|
||||
if($notification->unread)
|
||||
return TRUE;
|
||||
}
|
||||
RETURN FALSE;
|
||||
}
|
||||
return !empty($this->notifications) ? $this->notifications[0]->{$attribute} : null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user