Author: msergeant
Date: Mon Oct 27 02:49:22 2008
New Revision: 955
Modified:
trunk/lib/Qpsmtpd.pm
Log:
Support returning 0 values in config files (always worked on the second call
due to the cache, but would return undef on the first call)
Modified: trunk/lib/Qpsmtpd.pm
==============================================================================
--- trunk/lib/Qpsmtpd.pm (original)
+++ trunk/lib/Qpsmtpd.pm Mon Oct 27 02:49:22 2008
@@ -159,8 +159,11 @@
return @config;
}
else {
- return ($config[0] || $self->get_qmail_config($c, $type) ||
$defaults{$c});
- }
+ return $config[0] if defined($config[0]);
+ my $val = $self->get_qmail_config($c, $type);
+ return $val if defined($val);
+ return $defaults{$c};
+ }
}
sub config_dir {