From d44bcf1e2a69874b6b8b50db79b84dcdd8dc41b7 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Mon, 25 Apr 2016 03:24:08 -0400 Subject: [PATCH] Merge branch 'French_Translation_fixes' 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