Avoid PHP error when enabling LDAP group provider with PHP < 5.5

This commit is contained in:
Frederic Guillot
2015-12-22 19:35:41 +01:00
parent a16f3adc1e
commit 8ff2032ea3
2 changed files with 2 additions and 1 deletions

View File

@@ -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');
}