Don't check quota if no field

This commit is contained in:
Jamie Cameron
2008-04-16 17:26:23 +00:00
parent 1a4edc8e2b
commit fcbb03194a

View File

@@ -209,7 +209,8 @@ else {
# Validate IMAP quota
$quota = undef;
if ($config{'quota_support'} && !$in{'quota_def'}) {
if ($config{'quota_support'} && !$in{'quota_def'} &&
defined($in{'quota'})) {
$in{'quota'} =~ /^\d+$/ || &error($text{'usave_equota'});
$quota = $in{'quota'};
}