]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/3rdparty/class.messages.php
Fix fetched entries when localized
[github/wallabag/wallabag.git] / inc / 3rdparty / class.messages.php
old mode 100755 (executable)
new mode 100644 (file)
index e60bd3a..fbca0df
@@ -44,7 +44,7 @@ class Messages {
        var $msgId;\r
        var $msgTypes = array( 'help', 'info', 'warning', 'success', 'error' );\r
        var $msgClass = 'messages';\r
-       var $msgWrapper = "<div class='%s %s'><a href='#' class='closeMessage'>X</a>\n%s</div>\n";\r
+       var $msgWrapper = "<div class='%s %s'><a href='#' class='closeMessage'>&times;</a>\n%s</div>\n";\r
        var $msgBefore = '<p>';\r
        var $msgAfter = "</p>\n";\r
 \r
@@ -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
+?>