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 20d9e77 commit abe6afaCopy full SHA for abe6afa
lib/internal/Magento/Framework/View/Element/UiComponent/Context.php
@@ -350,7 +350,7 @@ protected function setAcceptType()
350
$this->acceptType = 'html';
351
352
$AcceptTypes = $this->getSortedAcceptHeader();
353
- foreach ($AcceptTypes as $key => $value) {
+ foreach (array_keys($AcceptTypes) as $key) {
354
if (strpos($key, 'json') !== false) {
355
$this->acceptType = 'json';
356
} elseif (strpos($key, 'html') !== false) {
0 commit comments