Commit 34a3f8a1 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#850 - Unlimitred mailbox quota when value = 0

parent 7467f9fa
......@@ -93,6 +93,9 @@ $form["tabs"]['mailuser'] = array (
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'quota_error_isint'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^(-1)|([1-9][0-9]*)$/',
'errmsg'=> 'quota_error_value'),
),
'default' => '0',
'value' => '',
......
......@@ -28,4 +28,5 @@ $wb["welcome_mail_message"] = "Welcome to your new email account. Your webmaster
$wb["disableimap_txt"] = 'Disable IMAP';
$wb["disablepop3_txt"] = 'Disable POP3';
$wb["duplicate_alias_or_forward_txt"] = 'There is already an alias or forwrd with this email address.';
$wb["quota_error_value"] = 'Invalid quota value. Allowed values are: -1 for unlimited or numbers > 1';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment