From f3f1ea5c21b103d38ed3c941c1ca68086b12b5cc Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 8 Apr 2008 06:51:47 +0000 Subject: [PATCH] Robustness: Start server with empty config file. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10263 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; } } } -- 2.30.2