Fix that retrieving notifications causes them to be dropped entirely
I've broke this when doing some improvements while being brainless, obviously.
This commit is contained in:
parent
5d44a005a0
commit
2c09ca1623
|
@ -91,11 +91,12 @@ class Notification
|
|||
public function getMessages()
|
||||
{
|
||||
$session = Session::getSession();
|
||||
if (false === empty($session->messages)) {
|
||||
$messages = $session->messages;
|
||||
if (false === empty($messages)) {
|
||||
$session->messages = array();
|
||||
}
|
||||
|
||||
return $session->messages;
|
||||
return $messages;
|
||||
}
|
||||
|
||||
final private function __construct()
|
||||
|
|
Loading…
Reference in New Issue