From da6e2c7f5ebd62465bc08f5235f335b9372d4999 Mon Sep 17 00:00:00 2001 From: Semenov Date: Wed, 27 Mar 2024 15:22:35 +0300 Subject: [PATCH] dev --- src/AssetsAutoCompressComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AssetsAutoCompressComponent.php b/src/AssetsAutoCompressComponent.php index 129f4e3..6b20f5c 100644 --- a/src/AssetsAutoCompressComponent.php +++ b/src/AssetsAutoCompressComponent.php @@ -243,7 +243,7 @@ public function bootstrap($app) $response = $event->sender; if ($this->enabled && ($this->htmlFormatter instanceof IFormatter) && $response->format == \yii\web\Response::FORMAT_HTML && !$app->request->isAjax && !$app->request->isPjax) { - if (!empty($response->data)) { + if (!empty($response->data) && is_string($response->data)) { $response->data = $this->_processingHtml($response->data); } }