mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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()
|
public function getMessages()
|
||||||
{
|
{
|
||||||
$session = Session::getSession();
|
$session = Session::getSession();
|
||||||
if (false === empty($session->messages)) {
|
$messages = $session->messages;
|
||||||
|
if (false === empty($messages)) {
|
||||||
$session->messages = array();
|
$session->messages = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $session->messages;
|
return $messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
final private function __construct()
|
final private function __construct()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user