Avoid PHP error when enabling LDAP group provider with PHP < 5.5
This commit is contained in:
@@ -45,7 +45,7 @@ class LdapBackendGroupProvider extends Base implements GroupBackendProviderInter
|
||||
*/
|
||||
public function getLdapGroupPattern($input)
|
||||
{
|
||||
if (empty(LDAP_GROUP_FILTER)) {
|
||||
if (LDAP_GROUP_FILTER === '') {
|
||||
throw new LogicException('LDAP group filter empty, check the parameter LDAP_GROUP_FILTER');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user