From 3564db7a619c8e8448f5de3c71b944ffdbd12546 Mon Sep 17 00:00:00 2001 From: janw Date: Thu, 11 Sep 2008 06:11:34 +0000 Subject: [PATCH] Fix array search for objectgroup members. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12408 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/gosaTriggered.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), ); -- 2.30.2