1
0
Fork 0
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:
biakaveron 2012-12-01 14:23:19 +04:00
parent 48b031af62
commit 39016b7ce6

View file

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