PHP Warning When Group Doesn't Have Description
OptrixAU opened this issue · comments
If you use groups()->all() on a list of groups and some don't have a description, warnings are raised.
This can be resolved by adding an 'isset' check on line 517 in /src/classes/adLDAPGroups.php, changing this...
if ($includeDescription && strlen($entries[$i]["description"][0]) > 0 ) {
into this...
if ($includeDescription && isset($entries[$i]["description"]) && strlen($entries[$i]["description"][0]) > 0 ) {