aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-03-19 19:26:05 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-03-19 19:26:05 +0100
commit0c51bfea6fce1b1a6d8b54304b0dba673c1fbd20 (patch)
tree4bbce90bb9195f0222d04eaa7eea8f7f2391c1d7
parentdb41c907aabe6700942d3f68167ef92ffec6c66b (diff)
parent6fa3f70bc217bbc4a352c287d3b896a6dd50994c (diff)
downloadwallabag-0c51bfea6fce1b1a6d8b54304b0dba673c1fbd20.tar.gz
wallabag-0c51bfea6fce1b1a6d8b54304b0dba673c1fbd20.tar.zst
wallabag-0c51bfea6fce1b1a6d8b54304b0dba673c1fbd20.zip
Merge pull request #576 from mariroz/fix-session-livetime
fix of _SESSION - indefined variable
-rw-r--r--inc/3rdparty/class.messages.php3
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?>