Verify that the session is started before flashing errors.
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user