mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 04:42:19 -05:00
fix of _SESSION - indefined variable
This commit is contained in:
parent
db41c907aa
commit
6fa3f70bc2
3
inc/3rdparty/class.messages.php
vendored
3
inc/3rdparty/class.messages.php
vendored
@ -59,6 +59,7 @@ class Messages {
|
||||
$this->msgId = md5(uniqid());
|
||||
|
||||
// Create the session array if it doesnt already exist
|
||||
settype($_SESSION, 'array');
|
||||
if( !array_key_exists('flash_messages', $_SESSION) ) $_SESSION['flash_messages'] = array();
|
||||
|
||||
}
|
||||
@ -228,4 +229,4 @@ class Messages {
|
||||
|
||||
|
||||
} // end class
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user