Code

Added check.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Sep 2008 14:11:59 +0000 (14:11 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Sep 2008 14:11:59 +0000 (14:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12375 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 8bc1100fd8952f69ad42795e76a594fea4ae8587..1807d9c824f1f5e88fdcd2fc7e0d82b44f2e2aca 100755 (executable)
@@ -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