Skip to content

Commit

Permalink
Merge pull request #42 from MindTouch/php5
Browse files Browse the repository at this point in the history
handle un set query
  • Loading branch information
modethirteen authored Jun 21, 2018
2 parents bb03443 + 3b1a923 commit 7c1a988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public function with($param, $value) { return $this->withQueryParam($param, $val
*/
public function withoutQueryParam($param) {
$data = $this->data;
$params = self::parseQuery($data['query']);
$params = isset($data['query']) ? self::parseQuery($data['query']) : [];
if(!isset($params[$param])) {

// key not found, nothing to do
Expand Down

0 comments on commit 7c1a988

Please sign in to comment.