From 6fa3f70bc217bbc4a352c287d3b896a6dd50994c Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Wed, 19 Mar 2014 19:22:04 +0200 Subject: fix of _SESSION - indefined variable --- inc/3rdparty/class.messages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/3rdparty/class.messages.php b/inc/3rdparty/class.messages.php index e60bd3a1..27c28f43 100644 --- a/inc/3rdparty/class.messages.php +++ b/inc/3rdparty/class.messages.php @@ -59,6 +59,7 @@ class Messages { $this->msgId = md5(uniqid()); // Create the session array if it doesnt already exist + settype($_SESSION, 'array'); if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array(); } @@ -228,4 +229,4 @@ class Messages { } // end class -?> \ No newline at end of file +?> -- cgit v1.2.3