mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-05-10 04:58:15 +03:00
check for empty initial request (fixes #20)
This commit is contained in:
parent
48b031af62
commit
39016b7ce6
|
@ -403,7 +403,7 @@ abstract class Kohana_DebugToolbar {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// Don't auto render toolbar for ajax requests
|
// Don't auto render toolbar for ajax requests
|
||||||
if (Request::initial()->is_ajax())
|
if (Request::initial() === NULL OR Request::initial()->is_ajax())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// Don't auto render toolbar for cli requests
|
// Don't auto render toolbar for cli requests
|
||||||
|
|
Loading…
Reference in a new issue