From: janw Date: Wed, 30 Jan 2008 17:09:21 +0000 (+0000) Subject: Fixed bug. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad9702bc068d54b9d0d8c1713c7846f5aaf4f917;p=gosa.git Fixed bug. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8682 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 96aea80fc..2a0fafabf 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -345,6 +345,7 @@ sub import_modules { if (not $file =~ /(\S*?).pm$/) { next; } + my $mod_name = $1; if( $file =~ /ArpHandler.pm/ ) { if( $no_arp > 0 ) { @@ -356,9 +357,7 @@ sub import_modules { if ($@) { daemon_log("ERROR: gosa-si-server could not load module $file", 1); daemon_log("$@", 5); - } - else { - my $mod_name = $1; + } else { my $info = eval($mod_name.'::get_module_info()'); # Only load module if get_module_info() returns a non-null object if(defined($info)) {