Don't check quota if no field
authorJamie Cameron <jcameron@webmin.com>
Wed, 16 Apr 2008 17:26:23 +0000 (17:26 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 16 Apr 2008 17:26:23 +0000 (17:26 +0000)
ldap-useradmin/save_user.cgi

index d0337b5..62a0052 100755 (executable)
@@ -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'};
                }