From: janw Date: Tue, 8 Apr 2008 06:51:47 +0000 (+0000) Subject: Robustness: Start server with empty config file. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3f1ea5c21b103d38ed3c941c1ca68086b12b5cc;p=gosa.git Robustness: Start server with empty config file. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10263 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index ed79c7349..d665e58c8 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -253,7 +253,7 @@ sub read_configfile { foreach my $section (keys %cfg_defaults) { foreach my $param (keys %{$cfg_defaults{ $section }}) { my $pinfo = $cfg_defaults{ $section }{ $param }; - ${@$pinfo[ 0 ]} = $cfg->val( $section, $param, @$pinfo[ 1 ] ); + ${@$pinfo[ 0 ]} = (defined($cfg))?$cfg->val( $section, $param, @$pinfo[ 1 ] ):@$pinfo[ 1 ]; } } }