diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-28 23:57:04 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-28 23:57:04 +0100 |
commit | 953a88785bf71bcf0763e98934d6d2b503f88402 (patch) | |
tree | 99d30c3e3503687f565fddbabb47c22fedcc0a8f /apps/user_ldap/group_ldap.php | |
parent | 31de757514ce6b23587161c6e1b15016df11e02f (diff) | |
download | nextcloud-server-953a88785bf71bcf0763e98934d6d2b503f88402.tar.gz nextcloud-server-953a88785bf71bcf0763e98934d6d2b503f88402.zip |
:lipstick:
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index b2796aaa615..bd56dbd56c4 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -251,7 +251,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { /** * returns a filter for a "users in primary group" search or count operation * - * @param $groupDN + * @param string $groupDN * @param string $search * @return string * @throws \Exception @@ -281,7 +281,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { * @param string $search * @param int $limit * @param int $offset - * @return \string[] + * @return string[] */ public function getUsersInPrimaryGroup($groupDN, $search = '', $limit = -1, $offset = 0) { try { @@ -300,7 +300,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { /** * returns the number of users that have the given group as primary group * - * @param $groupDN + * @param string $groupDN * @param string $search * @param int $limit * @param int $offset @@ -310,7 +310,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { try { $filter = $this->prepareFilterForUsersInPrimaryGroup($groupDN, $search); $users = $this->access->countUsers($filter, array('dn'), $limit, $offset); - return (is_int($users)) ? $users : 0; + return (int)$users; } catch (\Exception $e) { return 0; } |