We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returns no member, if there is just one member in the given group.
Hint: if there is only 1 member there, the $group['member'] is not an array. One possible fix:
` public function members($group, $fields = []) { $group = $this->find($group);
if (is_array($group) && array_key_exists('member', $group)) { $members = []; if(!is_array($group['member'])) { $group['member'] = [$group['member']]; } foreach ($group['member'] as $member) { $members[] = $this->adldap->search() ->setDn($member) ->select($fields) ->where('objectClass', '=', 'user') ->where('objectClass', '=', 'person') ->first(); } return $members; } return false; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Returns no member, if there is just one member in the given group.
Hint: if there is only 1 member there, the $group['member'] is not an array.
One possible fix:
`
public function members($group, $fields = [])
{
$group = $this->find($group);
The text was updated successfully, but these errors were encountered: