diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-09-27 19:52:52 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-09-27 19:52:52 +0200 |
commit | 3fa4b34a69ba291d39130dd4268595ec01f9f162 (patch) | |
tree | 95ef4badba6e419dba8009f7286ffde71d6789ef /apps/user_ldap/group_ldap.php | |
parent | aa9ffd119aea9a2cb527a0ac662fcdaad464fc68 (diff) | |
download | nextcloud-server-3fa4b34a69ba291d39130dd4268595ec01f9f162.tar.gz nextcloud-server-3fa4b34a69ba291d39130dd4268595ec01f9f162.zip |
LDAP: comparison, not assignment. Thanks to Manuel Delgado
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 5ec259f6c47..389679b80bd 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -143,7 +143,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface { if(!empty($this->groupSearch)) { $groupUsers = array_filter($groupUsers, array($this, 'groupMatchesFilter')); } - if($limit = -1) { + if($limit == -1) { $limit = null; } return array_slice($groupUsers, $offset, $limit); @@ -187,7 +187,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface { if(!empty($this->groupSearch)) { $groupUsers = array_filter($groupUsers, array($this, 'groupMatchesFilter')); } - if($limit = -1) { + if($limit == -1) { $limit = null; } return array_slice($groupUsers, $offset, $limit); |