From: rettenbe Date: Thu, 3 Jul 2008 16:44:56 +0000 (+0000) Subject: * bugfix in function send_usr_msg * function accepts gosa messages without a group... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=304c33b8d556c5c69e458d285c4e773a12fe43d1;p=gosa.git * bugfix in function send_usr_msg * function accepts gosa messages without a group tag or a usr tag now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11531 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index efeb3f51d..cf73dd022 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -72,8 +72,8 @@ sub send_user_msg { #my $subject = &decode_base64(@{$msg_hash->{'subject'}}[0]); my $subject = @{$msg_hash->{'subject'}}[0]; my $from = @{$msg_hash->{'from'}}[0]; - my @users = @{$msg_hash->{'users'}}; - my @groups = @{$msg_hash->{'groups'}}; + my @users = exists $msg_hash->{'users'} ? @{$msg_hash->{'users'}} : () ; + my @groups = exists $msg_hash->{'groups'} ? @{$msg_hash->{'groups'}} : (); my $delivery_time = @{$msg_hash->{'delivery_time'}}[0]; #my $message = &decode_base64(@{$msg_hash->{'message'}}[0]); my $message = @{$msg_hash->{'message'}}[0];