X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=inc%2F3rdparty%2Fclass.messages.php;fp=inc%2F3rdparty%2Fclass.messages.php;h=27c28f43f4efefb6e34579652d12bb8908037a57;hb=6fa3f70bc217bbc4a352c287d3b896a6dd50994c;hp=e60bd3a19c3e1db9e914ed3c10a7e3e1a2e74d4a;hpb=db41c907aabe6700942d3f68167ef92ffec6c66b;p=github%2Fwallabag%2Fwallabag.git 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 +?>