summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-22 19:35:41 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-22 19:35:41 +0100
commit8ff2032ea3fa49972fe076166c831719131e829d (patch)
tree28b714308536c393228c00168d165aef91e48178
parenta16f3adc1efc2198038325a78bc153daab6db213 (diff)
Avoid PHP error when enabling LDAP group provider with PHP < 5.5
-rw-r--r--ChangeLog1
-rw-r--r--app/Group/LdapBackendGroupProvider.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e49fdb19..a062848e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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');
}