awjudd/maintenance-mode

Exception index 'view' not found

MarkAusten opened this issue · 1 comments

In CheckForMaintenanceMode.php the above error is thrown at line 104. Viewing in debug mode there is no view index in the $data array.

Adding

if( ! isset($data['view']))
{
$data['view'] = $this->app['config']->get('maintenance mode.view');
}

after line 80 cures the problem.

Hmmm, it should always have a view property, but I'll add this check. Thanks for the report!