Verify that the session is started before flashing errors.

This commit is contained in:
Taylor Otwell
2011-11-07 10:22:23 -06:00
parent a11c456f42
commit ef89dd3b31

View File

@@ -52,7 +52,7 @@ class View {
// //
// This makes the implementation of the Post/Redirect/Get pattern very // This makes the implementation of the Post/Redirect/Get pattern very
// convenient since each view can assume it has a message container. // 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() $this->data['errors'] = Session::get('errors', function()
{ {