aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/PageLayout.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/PageLayout.php')
-rw-r--r--lib/classes/PageLayout.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/classes/PageLayout.php b/lib/classes/PageLayout.php
index ecb34b7..ee26d7c 100644
--- a/lib/classes/PageLayout.php
+++ b/lib/classes/PageLayout.php
@@ -511,6 +511,9 @@ class PageLayout
*/
public static function postMessage(LayoutMessage $message, $id = null)
{
+ if (!isset($_SESSION['messages'])) {
+ $_SESSION['messages'] = [];
+ }
if ($id === null ) {
$_SESSION['messages'][] = $message;
} else {