]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/3rdparty/class.messages.php
fix of _SESSION - indefined variable
[github/wallabag/wallabag.git] / inc / 3rdparty / class.messages.php
index e60bd3a19c3e1db9e914ed3c10a7e3e1a2e74d4a..27c28f43f4efefb6e34579652d12bb8908037a57 100644 (file)
@@ -59,6 +59,7 @@ class Messages {
                $this->msgId = md5(uniqid());\r
                \r
                // Create the session array if it doesnt already exist\r
+               settype($_SESSION, 'array');
                if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array();\r
                \r
        }\r
@@ -228,4 +229,4 @@ class Messages {
 \r
 \r
 } // end class\r
-?>
\ No newline at end of file
+?>