1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-23 17:42:15 -05:00

Merge pull request #576 from mariroz/fix-session-livetime

fix of  _SESSION - indefined variable
This commit is contained in:
Nicolas Lœuillet 2014-03-19 19:26:05 +01:00
commit 0c51bfea6f

View File

@ -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
?>
?>