From: Maryana Rozhankivska Date: Wed, 19 Mar 2014 17:22:04 +0000 (+0200) Subject: fix of _SESSION - indefined variable X-Git-Tag: 1.6.0^2~24^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6fa3f70bc217bbc4a352c287d3b896a6dd50994c;p=github%2Fwallabag%2Fwallabag.git fix of _SESSION - indefined variable --- 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 +?>