From ad9702bc068d54b9d0d8c1713c7846f5aaf4f917 Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 30 Jan 2008 17:09:21 +0000 Subject: [PATCH] Fixed bug. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8682 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)) { -- 2.30.2