Verify that the session is started before flashing errors.
This commit is contained in:
parent
a11c456f42
commit
ef89dd3b31
|
@ -52,7 +52,7 @@ public function __construct($view, $data = array())
|
|||
//
|
||||
// This makes the implementation of the Post/Redirect/Get pattern very
|
||||
// convenient since each view can assume it has a message container.
|
||||
if (Config::$items['session']['driver'] !== '')
|
||||
if (Config::$items['session']['driver'] !== '' and Session::started())
|
||||
{
|
||||
$this->data['errors'] = Session::get('errors', function()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue