From d1b8aa198f766fc221792cb847a9f44331f702fa Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 8 Sep 2008 14:11:59 +0000 Subject: [PATCH] Added check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12375 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.30.2