mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-06-16 23:00:50 +03:00
check for empty initial request (fixes #20)
This commit is contained in:
parent
16bccbba47
commit
a3f23d9d96
|
@ -431,7 +431,7 @@ abstract class Kohana_Debugtoolbar {
|
|||
}
|
||||
|
||||
// Don't auto render toolbar for ajax requests
|
||||
if (Request::initial()->is_ajax())
|
||||
if (Request::initial() === NULL OR Request::initial()->is_ajax())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue