Skip to content

Commit

Permalink
Fix PHP8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jul 28, 2023
1 parent e147556 commit 5d5da03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion program/lib/Roundcube/rcube_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1936,11 +1936,12 @@ private function _fetch_groups($search = null, $mode = 0, $vlv_page = null)

$group_name = is_array($entry[$name_attr]) ? $entry[$name_attr][0] : $entry[$name_attr];
$group_id = self::dn_encode($entry['dn']);
$classes = !empty($entry['objectclass']) ? $entry['objectclass'] : [];

$groups[$group_id]['ID'] = $group_id;
$groups[$group_id]['dn'] = $entry['dn'];
$groups[$group_id]['name'] = $group_name;
$groups[$group_id]['member_attr'] = $this->get_group_member_attr($entry['objectclass']);
$groups[$group_id]['member_attr'] = $this->get_group_member_attr($classes);

// list email attributes of a group
for ($j=0; $entry[$email_attr] && $j < $entry[$email_attr]['count']; $j++) {
Expand Down

0 comments on commit 5d5da03

Please sign in to comment.