From 71c74b1b572f3bdf00ba99009cc23f8f48072a1c Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Sat, 08 Mar 2014 11:58:49 -0500 Subject: [PATCH] Fixed: FS#3372 - Web browser password autofill function overwrites settings --- interface/lib/classes/validate_reseller.inc.php | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/interface/lib/classes/validate_reseller.inc.php b/interface/lib/classes/validate_reseller.inc.php index 5453905..c02c4fd 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; - + function limit_client($field_name, $field_value, $validator) { + global $app; + if($field_value <= 0) { return $app->tform->lng('limit_client_error_positive'); } else { return ''; } - } + } - -} \ No newline at end of file + +} -- Gitblit v1.9.1