Code

Fix array search for objectgroup members.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 06:11:34 +0000 (06:11 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 06:11:34 +0000 (06:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12408 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/gosaTriggered.pm

index 162da660a51896fd4e044c6ac4a17008993b48e4..40dc735d733bae241726dbb25d6d15e20fcc0b95 100644 (file)
@@ -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(),
       );