X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2F3rdparty%2Fclass.messages.php;h=27c28f43f4efefb6e34579652d12bb8908037a57;hb=6fe9b616aa48c61d1af6d044042c848de1650ecf;hp=e60bd3a19c3e1db9e914ed3c10a7e3e1a2e74d4a;hpb=01c0e050ad8eca54f115dfa21db99e4f61ab7ca7;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/3rdparty/class.messages.php b/inc/3rdparty/class.messages.php old mode 100755 new mode 100644 index e60bd3a1..27c28f43 --- 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 +?>