Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #108 - Check array key exists rather than for empty

  • Loading branch information...
commit d75e63d4656f9f87f0f04202e5838df5fbb7bd00 1 parent 3e7eb85
@davedevelopment davedevelopment authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 QueryString.php
View
6 QueryString.php
@@ -63,10 +63,10 @@ public static function fromString($query)
$key = substr($key, 0, -2);
}
- if (empty($parts[1])) {
- $q->add($key, '');
- } else {
+ if (array_key_exists(1, $parts)) {
$q->add($key, rawurldecode(str_replace('+', '%20', $parts[1])));
+ } else {
+ $q->add($key, '');
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.