Skip to content

Commit 99b620e

Browse files
committed
Merge remote-tracking branch 'origin/MC-29804' into 2.4-develop-pr6
2 parents 6a8a098 + 59f7709 commit 99b620e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Theme/Controller/Result/JsFooterPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function beforeSendResponse(Http $subject)
4141
{
4242
$content = $subject->getContent();
4343
$script = [];
44-
if (strpos($content, '</body') !== false) {
44+
if (is_string($content) && strpos($content, '</body') !== false) {
4545
if ($this->scopeConfig->isSetFlag(
4646
self::XML_PATH_DEV_MOVE_JS_TO_BOTTOM,
4747
ScopeInterface::SCOPE_STORE

0 commit comments

Comments
 (0)