Code

wrong if-clause
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 May 2008 09:39:00 +0000 (09:39 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 May 2008 09:39:00 +0000 (09:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10989 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/server_server_com.pm

index 760928ef2bdf42bf28315d77f95ef56e749967b3..e417150e1276ff3dae5d30c220af5f8824f93c72 100644 (file)
@@ -30,7 +30,7 @@ sub new_server {
     my $source = @{$msg_hash->{'source'}}[0];
     my $target = @{$msg_hash->{'target'}}[0];
     my $key = @{$msg_hash->{'key'}}[0];
-    my @clients = @{$msg_hash->{'client'}};
+    my @clients = exists $msg_hash->{'client'} ? @{$msg_hash->{'client'}} : qw();
 
     # sanity check
     if (ref $key eq 'HASH') {