Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-01-29 01:57:04 +0300
committerArthur Schiwon <blizzz@owncloud.com>2015-07-23 15:33:30 +0300
commit36f17964e5db0193130b403bdefa29b5c3e0b537 (patch)
tree4342b0aee6a0fc6aa85a8fb7ffe395783fce19e8 /apps
parent5d10c37b08c8df859eab5f7b338a82291951095f (diff)
:lipstick:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/group_ldap.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 916d5f97649..87e4a5ce65f 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;
}