Skip to content

Commit

Permalink
bug #4632 Notice in ./libraries/Util.class.php#1916 Undefined index: …
Browse files Browse the repository at this point in the history
…query.

Url may not necessarily have a query part

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Dec 10, 2014
1 parent e9b9526 commit ce2474f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,11 @@ public static function splitURLQuery($url)

$url_parts = parse_url($url);

return explode($separator, $url_parts['query']);
if (! empty($url_parts['query'])) {
return explode($separator, $url_parts['query']);
} else {
return array();
}
}

/**
Expand Down

0 comments on commit ce2474f

Please sign in to comment.