From: janw Date: Mon, 8 Sep 2008 14:11:59 +0000 (+0000) Subject: Added check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1b8aa198f766fc221792cb847a9f44331f702fa;p=gosa.git Added check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12375 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 8bc1100fd..1807d9c82 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -3037,10 +3037,12 @@ sub register_at_foreign_servers { # add locally loaded gosa-si modules to registration message my $loaded_modules = {}; while (my ($package, $pck_info) = each %$known_modules) { - foreach my $act_module (keys(%{@$pck_info[2]})) { - $loaded_modules->{$act_module} = ""; - } + next if ((!defined(@$pck_info[2])) || (!(ref (@$pck_info[2]) eq 'HASH'))); + foreach my $act_module (keys(%{@$pck_info[2]})) { + $loaded_modules->{$act_module} = ""; + } } + map(&add_content2xml_hash($myhash, "loaded_modules", $_), keys(%$loaded_modules)); # add macaddress to registration message