diff --git a/YiiDebugToolbarRoute.php b/YiiDebugToolbarRoute.php index 6d9e4d2..9ad2792 100644 --- a/YiiDebugToolbarRoute.php +++ b/YiiDebugToolbarRoute.php @@ -190,7 +190,9 @@ public function collectLogs($logger, $processLogs=false) protected function processLogs($logs) { - $this->getToolbarWidget()->run(); + // Check content types again, as it may have not been defined at the beiggining of the processing (as in excel download with GZIP) + if ($this->checkContentTypeWhitelist()) + $this->getToolbarWidget()->run(); } private function checkContentTypeWhitelist()