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 23:43:36 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-04-03 23:43:36 +0400
commita12cf721b04e22eb3a8d3c0d82397687faa34aed (patch)
tree488c1e3d421e0346b37a3a727db839411a22e996 /plugins/CustomVariables/Commands
parent6008898c699521e34a5b6156d54787f66eb9450b (diff)
if already installed, do not install it again
Diffstat (limited to 'plugins/CustomVariables/Commands')
-rw-r--r--plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php b/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php
index 7bd7a8d43f..60cd63ee55 100644
--- a/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php
+++ b/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php
@@ -115,8 +115,8 @@ class SetNumberOfCustomVariables extends ConsoleCommand
$maxCustomVars = (int) $maxCustomVars;
- if ($maxCustomVars <= 0) {
- throw new \Exception('There has to be at least one custom variable');
+ if ($maxCustomVars <= 1) {
+ throw new \Exception('There has to be at least two custom variables');
}
return $maxCustomVars;