Skip to content

Commit eb59f6a

Browse files
committed
Fix bug.
1 parent 334cf3f commit eb59f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/front/graphql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function setMedia()
3434
public function initContent()
3535
{
3636
parent::initContent();
37-
if ($_SERVER['HTTP_ACCEPT']) {
37+
if (!empty($_SERVER['HTTP_ACCEPT'])) {
3838
$accepts = explode(',', $_SERVER['HTTP_ACCEPT']);
3939
if (in_array('text/html', $accepts)) {
4040
$this->context->smarty->assign(array(

0 commit comments

Comments
 (0)