Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-04-16 14:02:21 +0400
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-04-16 14:02:21 +0400
commitb009f1a053892c9450d5e44a9bcfbf1547b913fe (patch)
treed41fd4641103c3a3e3b26c446bb7ec6702e08e62
parent712bb3533f48aa2307c8787c3a4c40c9397b15ee (diff)
- fixing small bug in Url.php when an array parameter is in the query string
-rw-r--r--core/Url.php12
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);