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