mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-26 09:30:30 +00:00
Merge pull request #576 from mariroz/fix-session-livetime
fix of _SESSION - indefined variable
This commit is contained in:
commit
0c51bfea6f
1 changed files with 2 additions and 1 deletions
1
inc/3rdparty/class.messages.php
vendored
1
inc/3rdparty/class.messages.php
vendored
|
@ -59,6 +59,7 @@ class Messages {
|
||||||
$this->msgId = md5(uniqid());
|
$this->msgId = md5(uniqid());
|
||||||
|
|
||||||
// Create the session array if it doesnt already exist
|
// Create the session array if it doesnt already exist
|
||||||
|
settype($_SESSION, 'array');
|
||||||
if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array();
|
if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue