diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-04-16 14:02:21 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-04-16 14:02:21 +0400 |
commit | b009f1a053892c9450d5e44a9bcfbf1547b913fe (patch) | |
tree | d41fd4641103c3a3e3b26c446bb7ec6702e08e62 | |
parent | 712bb3533f48aa2307c8787c3a4c40c9397b15ee (diff) |
- fixing small bug in Url.php when an array parameter is in the query string
-rw-r--r-- | core/Url.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Url.php b/core/Url.php index a6adfc64dc..e0e221e06f 100644 --- a/core/Url.php +++ b/core/Url.php @@ -174,7 +174,17 @@ class Piwik_Url $query = ''; foreach($urlValues as $name => $value) { - $query .= $name . "=" . $value . "&"; + if(is_array($value)) + { + foreach($value as $theValue) + { + $query .= $name . "[]=" . $theValue . "&"; + } + } + else + { + $query .= $name . "=" . $value . "&"; + } } $query = substr($query, 0, -1); |