Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
c8c0e72e
Commit
c8c0e72e
authored
12 years ago
by
Björn Schießle
Browse files
Options
Downloads
Plain Diff
Merge pull request #1768 from houqp/issue_1739
bug fix for issue 1739
parents
dcd93a53
2c78c5cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/group.php
+8
-7
8 additions, 7 deletions
lib/group.php
lib/group/database.php
+1
-1
1 addition, 1 deletion
lib/group/database.php
with
9 additions
and
8 deletions
lib/group.php
+
8
−
7
View file @
c8c0e72e
...
...
@@ -308,15 +308,16 @@ class OC_Group {
* @return array with display names (Key) user ids (value)
*/
public
static
function
displayNamesInGroups
(
$gids
,
$search
=
''
,
$limit
=
-
1
,
$offset
=
0
)
{
$displayNames
=
array
();
$displayNames
=
array
();
foreach
(
$gids
as
$gid
)
{
// TODO Need to apply limits to groups as total
$displayNames
=
array_merge
(
array_diff
(
self
::
displayNamesInGroup
(
$gid
,
$search
,
$limit
,
$offset
),
$displayNames
),
$displayNames
);
$diff
=
array_diff
(
self
::
displayNamesInGroup
(
$gid
,
$search
,
$limit
,
$offset
),
$displayNames
);
if
(
$diff
)
{
$displayNames
=
array_merge
(
$diff
,
$displayNames
);
}
}
return
$displayNames
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/group/database.php
+
1
−
1
View file @
c8c0e72e
...
...
@@ -225,7 +225,7 @@ class OC_Group_Database extends OC_Group_Backend {
$stmt
=
OC_DB
::
prepare
(
'SELECT `*PREFIX*users`.`uid`, `*PREFIX*users`.`displayname`'
.
' FROM `*PREFIX*users`'
.
' INNER JOIN `*PREFIX*group_user` ON `*PREFIX*group_user`.`uid` = `*PREFIX*users`.`uid`'
.
' WHERE `gid` = ? AND `*PREFIX*group_user
.
uid` LIKE ?'
,
.
' WHERE `gid` = ? AND `*PREFIX*group_user
`.`
uid` LIKE ?'
,
$limit
,
$offset
);
$result
=
$stmt
->
execute
(
array
(
$gid
,
$search
.
'%'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment