1
0
Fork 0
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:
biakaveron 2012-12-01 14:18:32 +04:00
parent 16bccbba47
commit a3f23d9d96

View file

@ -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;
}