1
0
Fork 0
mirror of https://github.com/Oreolek/debug-toolbar.git synced 2024-04-24 21:29:19 +03:00

do not crash on 404

This commit is contained in:
Alexander Yakovlev 2014-05-05 12:08:11 +07:00
parent c24008b2e2
commit 3fbdd1d75a

View file

@ -566,7 +566,7 @@ abstract class Kohana_Debugtoolbar {
return FALSE;
}
if ( ! empty($config->excluded_routes) && in_array(Route::name(Request::initial()->route()), $config->excluded_routes))
if ( ! empty($config->excluded_routes) && !is_null(Request::initial()->route()) && in_array(Route::name(Request::initial()->route()), $config->excluded_routes))
{
return FALSE;
}