Skip to content

Commit

Permalink
Fix PHP8 warnings (#9306)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jan 20, 2024
1 parent c95865e commit 3ba78d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program/lib/Roundcube/rcube_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1915,12 +1915,12 @@ private function _fetch_groups($search = null, $mode = 0, $vlv_page = null)
}

$base_dn = $this->groups_base_dn;
$filter = $this->prop['groups']['filter'];
$filter = $this->prop['groups']['filter'] ?? null;
$scope = $this->prop['groups']['scope'] ?? 'sub';
$name_attr = !empty($this->prop['groups']['name_attr']) ? $this->prop['groups']['name_attr'] : 'cn';
$email_attr = !empty($this->prop['groups']['email_attr']) ? $this->prop['groups']['email_attr'] : 'mail';
$sort_attrs = (array) (!empty($this->prop['groups']['sort']) ? $this->prop['groups']['sort'] : $name_attr);
$sort_attr = $sort_attrs[0];
$sort_attr = array_first($sort_attrs) ?: $name_attr;
$page_size = 200;

$ldap = $this->ldap;
Expand Down

0 comments on commit 3ba78d3

Please sign in to comment.