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
1 changed files with 1 additions and 1 deletions

View File

@ -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()
{