powered by nequal
Home » Ethna_Plugin_Debugtoolbar » Timeline » 1357

Changeset 1357 -- 2009-10-26 20:01:52

Author
Sotaro KARASAWA
Comment
fixed: if view class is not setted, do not filtered

Diffs

Ethna_Plugin_Debugtoolbar/trunk/Plugin/Filter/Debugtoolbar.php

@@ -47,7 +47,7 @@
*/
function postFilter()
{
-        if (!$this->ctl->view->has_default_header) {
+        if (is_null($this->ctl->view) || !$this->ctl->view->has_default_header) {
return null;
}

Ethna_Plugin_Debugtoolbar/trunk/Plugin/Logwriter/Debugtoolbar.php

@@ -57,7 +57,7 @@
function end()
{
$ctl = Ethna_Controller::getInstance();
-        if (!$ctl->view->has_default_header) {
+        if (is_null($ctl->view) || !$ctl->view->has_default_header) {
return null;
}
echo '<div class="ethna-debug" id="ethna-debug-logwindow">';