Skip to content
New issue

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

PHP Warning When Group Doesn't Have Description #110

Open
OptrixAU opened this issue May 19, 2016 · 0 comments
Open

PHP Warning When Group Doesn't Have Description #110

OptrixAU opened this issue May 19, 2016 · 0 comments

Comments

@OptrixAU
Copy link

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 ) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant