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:
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/Common.php b/core/Common.php
index 2cca73ce91..7b43f2e693 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -124,22 +124,22 @@ class Piwik_Common
if( false !== strpos($value, '='))
{
$exploded = explode('=',$value);
- $name = $exploded[0];
-
- // if array without indexes
- if( substr($name,-2,2) == '[]' )
- {
- $name = substr($name, 0, -2);
- if( isset($nameToValue[$name]) == false || is_array($nameToValue[$name]) == false )
- {
- $nameToValue[$name] = array();
- }
- array_push($nameToValue[$name],$exploded[1]);
- }
- else
- {
- $nameToValue[$name] = $exploded[1];
- }
+ $name = $exploded[0];
+
+ // if array without indexes
+ if( substr($name,-2,2) == '[]' )
+ {
+ $name = substr($name, 0, -2);
+ if( isset($nameToValue[$name]) == false || is_array($nameToValue[$name]) == false )
+ {
+ $nameToValue[$name] = array();
+ }
+ array_push($nameToValue[$name],$exploded[1]);
+ }
+ else
+ {
+ $nameToValue[$name] = $exploded[1];
+ }
}
}
return $nameToValue;