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 | |
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')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/user_ldap.php | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index bacdb8b9ae1..53a65129108 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -111,7 +111,7 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { if(!empty($this->userSearch)) { $ldap_users = array_filter($ldap_users, array($this, 'userMatchesFilter')); } - if($limit = -1) { + if($limit == -1) { $limit = null; } return array_slice($ldap_users, $offset, $limit); |