diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 0c3ea45..5295a67 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -247,7 +247,12 @@ public function findSubscriber() foreach(array('Name', 'EmailAddress', 'Identifier') as $m) { $hits = $this->CoPerson->$m->search($co, $findUserId, 25); - $coPersonIds = array_merge($coPersonIds, Hash::extract($hits, '{n}.CoPerson.id')); + foreach($hits as $hit) { + if ($hit['CoPerson']['status'] == 'A') { + $coPersonIds[] = $hit['CoPerson']['id']; + } + } + // $coPersonIds = array_merge($coPersonIds, Hash::extract($hits, '{n}.CoPerson.id')); } }