aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-31 12:17:23 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-31 12:17:23 +0100
commit77765bd9670ef64ad6cc90b4f3d74c959f937e13 (patch)
tree940a2fad6415b2d3db13853f1e81ba8230cf835a /lib
parentab255e8bb6551f97f85b863c47549281103de95d (diff)
downloadnextcloud-server-77765bd9670ef64ad6cc90b4f3d74c959f937e13.tar.gz
nextcloud-server-77765bd9670ef64ad6cc90b4f3d74c959f937e13.zip
remove some left over comments
Diffstat (limited to 'lib')
-rw-r--r--lib/group/database.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/group/database.php b/lib/group/database.php
index c5dd402b212..1e2328f4c08 100644
--- a/lib/group/database.php
+++ b/lib/group/database.php
@@ -219,21 +219,14 @@ class OC_Group_Database extends OC_Group_Backend {
*/
public function DisplayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) {
$displayNames = '';
- /*
-
- SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
- FROM Persons
- INNER JOIN Orders
- ON Persons.P_Id=Orders.P_Id
- ORDER BY Persons.LastName
- */
+
$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 ?', $limit, $offset);
$result = $stmt->execute(array($gid, $search.'%'));
$users = array();
while ($row = $result->fetchRow()) {
$displayName = trim($row['displayname'], ' ');
$displayNames[$row['uid']] = empty($displayName) ? $row['uid'] : $displayName;
- }
+ }
return $displayNames;
}
}