diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-03-19 19:22:04 +0200 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-03-19 19:22:04 +0200 |
commit | 6fa3f70bc217bbc4a352c287d3b896a6dd50994c (patch) | |
tree | 4bbce90bb9195f0222d04eaa7eea8f7f2391c1d7 /inc/3rdparty | |
parent | db41c907aabe6700942d3f68167ef92ffec6c66b (diff) | |
download | wallabag-6fa3f70bc217bbc4a352c287d3b896a6dd50994c.tar.gz wallabag-6fa3f70bc217bbc4a352c287d3b896a6dd50994c.tar.zst wallabag-6fa3f70bc217bbc4a352c287d3b896a6dd50994c.zip |
fix of _SESSION - indefined variable
Diffstat (limited to 'inc/3rdparty')
-rw-r--r-- | inc/3rdparty/class.messages.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
59 | $this->msgId = md5(uniqid()); | 59 | $this->msgId = md5(uniqid()); |
60 | 60 | ||
61 | // Create the session array if it doesnt already exist | 61 | // Create the session array if it doesnt already exist |
62 | settype($_SESSION, 'array'); | ||
62 | if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array(); | 63 | if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array(); |
63 | 64 | ||
64 | } | 65 | } |
@@ -228,4 +229,4 @@ class Messages { | |||
228 | 229 | ||
229 | 230 | ||
230 | } // end class | 231 | } // end class |
231 | ?> \ No newline at end of file | 232 | ?> |