Skip to content

Commit

Permalink
Return empty array if there are no query params
Browse files Browse the repository at this point in the history
  • Loading branch information
sidkshatriya committed Aug 14, 2016
1 parent 1c728d7 commit 5651621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pass/BasePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ protected function getQueryArray(DOMQuery $el)

$query = ParseUrl::parse_url($href, PHP_URL_QUERY);
if ($query === null) {
return false;
return [];
}

$arr = [];
Expand Down

0 comments on commit 5651621

Please sign in to comment.