LDAP: comparison, not assignment. Thanks to Manuel Delgado

This commit is contained in:
Arthur Schiwon 2012-09-27 19:52:52 +02:00
parent aa9ffd119a
commit 3fa4b34a69
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);