diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-22 19:35:41 +0100 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-22 19:35:41 +0100 |
commit | 8ff2032ea3fa49972fe076166c831719131e829d (patch) | |
tree | 28b714308536c393228c00168d165aef91e48178 | |
parent | a16f3adc1efc2198038325a78bc153daab6db213 (diff) |
Avoid PHP error when enabling LDAP group provider with PHP < 5.5
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | app/Group/LdapBackendGroupProvider.php | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,7 @@ Bug fixes: - Fix wrong constant name that cause a PHP error in project management section - Fix pagination in group members listing +- Avoid PHP error when enabling LDAP group provider with PHP < 5.5 Version 1.0.22 -------------- diff --git a/app/Group/LdapBackendGroupProvider.php b/app/Group/LdapBackendGroupProvider.php index d65a9865..cad732c4 100644 --- a/app/Group/LdapBackendGroupProvider.php +++ b/app/Group/LdapBackendGroupProvider.php @@ -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'); } |