Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDAP: fix again proper check if groups are enabled
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it me or is this the exact same code just formatted differently?
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, didn't know that.
I'll learn php first before making another comment ;-)
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's fine, it's a good way to learn and understand.
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH one can never come to understand PHP, but possibly get to know most of it's quirks ;)
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL. That and some other 'reports' on the internet kept me from diving in it. Probably should just bite the bullet.
4b39ce5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://www.php.net/manual/en/function.empty.php
"empty() only checks variables as anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false."
If both members are either strings or NULL it can be omitted for implicit type cast:
if($this->connection->ldapGroupFilter && $this->connection->ldapGroupMemberAssocAttr) {