From: janw Date: Thu, 11 Sep 2008 06:11:34 +0000 (+0000) Subject: Fix array search for objectgroup members. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3564db7a619c8e8448f5de3c71b944ffdbd12546;p=gosa.git Fix array search for objectgroup members. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12408 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index 162da660a..40dc735d7 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -938,7 +938,7 @@ sub trigger_activate_new { } # Add to ObjectGroup - if(!(scalar grep $_ eq $ldap_entry->dn(), map {$_ => 1} $ogroup_entry->get_value('member', asref => 1))) { + if(!(scalar grep $_ eq $ldap_entry->dn, @{$ogroup_entry->get_value('member', asref => 1)})) { $ogroup_entry->add ( 'member' => $ldap_entry->dn(), );