mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-04-27 14:49:18 +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;
|
||||
|
||||
// Don't auto render toolbar for ajax requests
|
||||
if (Request::initial()->is_ajax())
|
||||
if (Request::initial() === NULL OR Request::initial()->is_ajax())
|
||||
return FALSE;
|
||||
|
||||
// Don't auto render toolbar for cli requests
|
||||
|
|
Loading…
Reference in a new issue