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:
authorThomas Steur <thomas.steur@googlemail.com>2014-04-03 08:03:19 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-04-03 08:03:19 +0400
commit5cbbb4f47b69e977aa43b4403fb3459187f0111b (patch)
treeb66c2bfa0b3aa21c739fea8d245e83bd7ed48195 /core/Tracker/Request.php
parentbaa840bf4a5d16bb6097625671c6e55d30becbac (diff)
some more tweaks and added a comment to get info about currently configured custom vars
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r--core/Tracker/Request.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php
index 3c217f6921..df551e7d82 100644
--- a/core/Tracker/Request.php
+++ b/core/Tracker/Request.php
@@ -353,10 +353,11 @@ class Request
return array();
}
$customVariables = array();
+ $maxCustomVars = CustomVariables::getMaxCustomVariables();
foreach ($customVar as $id => $keyValue) {
$id = (int)$id;
if ($id < 1
- || $id > CustomVariables::getMaxCustomVariables()
+ || $id > $maxCustomVars
|| count($keyValue) != 2
|| (!is_string($keyValue[0]) && !is_numeric($keyValue[0]))
) {