Commit ef89dd3b by Taylor Otwell

Verify that the session is started before flashing errors.

parent a11c456f
......@@ -52,7 +52,7 @@ class View {
//
// 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()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment