There was an error while loading. Please reload this page.
1 parent 334cf3f commit eb59f6aCopy full SHA for eb59f6a
controllers/front/graphql.php
@@ -34,7 +34,7 @@ public function setMedia()
34
public function initContent()
35
{
36
parent::initContent();
37
- if ($_SERVER['HTTP_ACCEPT']) {
+ if (!empty($_SERVER['HTTP_ACCEPT'])) {
38
$accepts = explode(',', $_SERVER['HTTP_ACCEPT']);
39
if (in_array('text/html', $accepts)) {
40
$this->context->smarty->assign(array(
0 commit comments