Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 27, 2024
1 parent 6f098a9 commit da6e2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssetsAutoCompressComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit da6e2c7

Please sign in to comment.