Skip to content

Commit

Permalink
Fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Nov 6, 2019
1 parent 559f768 commit 75b4f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function is_graphql_request()
return true;
}

list($path, $query) = explode('?', $_SERVER['REQUEST_URI']);
$path = explode('?', $_SERVER['REQUEST_URI'])[0];

if ($this->endsWith($path, '/' . \WPGraphQL\Router::$route)) {
return true;
Expand Down

0 comments on commit 75b4f25

Please sign in to comment.