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 <tsteur@users.noreply.github.com>2019-08-16 04:26:56 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-08-16 04:26:56 +0300
commitb97564128019d83ded6666e0b6edf0eaf7dea481 (patch)
tree0f6fd20c1d9960807e6b4b1a67ac7e9ede3358be /plugins/CustomVariables
parent0e900dee88b54584498c9d1f089b9a5af4ba612c (diff)
Fix Warning: CustomVariables.php(82): Notice - Undefined index: CustomVariables.MaxNumCustomVariables (#14775)
fix #14773
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r--plugins/CustomVariables/CustomVariables.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/CustomVariables/CustomVariables.php b/plugins/CustomVariables/CustomVariables.php
index 2437941f8a..5d35438d30 100644
--- a/plugins/CustomVariables/CustomVariables.php
+++ b/plugins/CustomVariables/CustomVariables.php
@@ -79,7 +79,11 @@ class CustomVariables extends \Piwik\Plugin
$cache = Cache::getCacheGeneral();
$cacheKey = self::MAX_NUM_CUSTOMVARS_CACHEKEY;
- return $cache[$cacheKey];
+ if (isset($cache[$cacheKey])) {
+ return $cache[$cacheKey];
+ }
+
+ return 0;
}
public function getCacheGeneral(&$cacheContent)