From 1ac031e96c87e965aa4953b4732b7f52729a28fc Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Tue, 19 Apr 2016 14:10:20 -0400 Subject: [PATCH] Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1 --- 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