From 2b3b4cfe53e93823e11da9dc6c898b43e43cfa70 Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Sun, 28 Feb 2016 11:14:17 -0500 Subject: [PATCH] more detaled informations during install/setup when mysql is not using NO_ENGINE_SUBSTITUTION --- interface/lib/classes/validate_reseller.inc.php | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/interface/lib/classes/validate_reseller.inc.php b/interface/lib/classes/validate_reseller.inc.php index 5453905..d4fc862 100644 --- a/interface/lib/classes/validate_reseller.inc.php +++ b/interface/lib/classes/validate_reseller.inc.php @@ -29,19 +29,19 @@ */ class validate_reseller { - - /* + + /* Validator function to check if a given cron command is in correct form (url only). */ - function limit_client($field_name, $field_value, $validator) { - global $app; - - if($field_value <= 0) { - return $app->tform->lng('limit_client_error_positive'); + function limit_client($field_name, $field_value, $validator) { + global $app; + + if($field_value <= 0 && $field_value != -1) { + return $app->tform->lng('limit_client_error_positive_or_unlimited'); } else { return ''; } - } + } - -} \ No newline at end of file + +} -- Gitblit v1.9.1