We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e23510 commit ff1aa7eCopy full SHA for ff1aa7e
app/code/Magento/Theme/Controller/Result/JsFooterPlugin.php
@@ -41,7 +41,7 @@ public function beforeSendResponse(Http $subject)
41
{
42
$content = $subject->getContent();
43
$script = [];
44
- if (strpos($content, '</body') !== false) {
+ if (is_string($content) && strpos($content, '</body') !== false) {
45
if ($this->scopeConfig->isSetFlag(
46
self::XML_PATH_DEV_MOVE_JS_TO_BOTTOM,
47
ScopeInterface::SCOPE_STORE
0 commit comments