From ef89dd3b317e468b6fa54d7b81f4ae31c16cb48a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 7 Nov 2011 10:22:23 -0600 Subject: [PATCH] Verify that the session is started before flashing errors. --- laravel/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/view.php b/laravel/view.php index 68b5fc75..8c542628 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -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() {