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

@@ -10,6 +10,7 @@ Bug fixes:
- Fix wrong constant name that cause a PHP error in project management section - Fix wrong constant name that cause a PHP error in project management section
- Fix pagination in group members listing - Fix pagination in group members listing
- Avoid PHP error when enabling LDAP group provider with PHP < 5.5
Version 1.0.22 Version 1.0.22
-------------- --------------

View File

@@ -45,7 +45,7 @@ class LdapBackendGroupProvider extends Base implements GroupBackendProviderInter
*/ */
public function getLdapGroupPattern($input) 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'); throw new LogicException('LDAP group filter empty, check the parameter LDAP_GROUP_FILTER');
} }