Skip to content

Commit c5ee901

Browse files
author
Ian Barber
committed
2 parents 73c5024 + 5f3f175 commit c5ee901

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Google/Http/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ private function parseQuery($string)
424424
list($key, $value) = explode('=', $part, 2);
425425
$value = urldecode($value);
426426
if (isset($return[$key])) {
427-
$return[$key] = array($return[$key]);
427+
if (!is_array($return[$key])) {
428+
$return[$key] = array($return[$key]);
429+
}
428430
$return[$key][] = $value;
429431
} else {
430432
$return[$key] = $value;

0 commit comments

Comments
 (0)