index 9050d554bc75fec9d00512a64dd3db4805c9f98b..2ae7a78bd3e2d54881f4e9ab86a7c6c51c22c5e5 100644 (file)
my ($cfg_file, %cfg_defaults) = @_;
my $cfg;
- if( defined( $cfg_file) && ( length($cfg_file) > 0 )) {
+ if( defined( $cfg_file) && ( (-s $cfg_file) > 0 )) {
if( -r $cfg_file ) {
$cfg = Config::IniFiles->new( -file => $cfg_file );
} else {
# Build LDAP connection
my $ldap_handle = &main::get_ldap_handle($session_id);
if( not defined $ldap_handle ) {
- &main::daemon_log("$session_id ERROR: cannot connect to ldap: $ldap_uri", 1)
+ &main::daemon_log("$session_id ERROR: cannot connect to ldap: $ldap_uri", 1);
return;
}