]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove some left over comments
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 31 Jan 2013 11:17:23 +0000 (12:17 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 31 Jan 2013 11:17:23 +0000 (12:17 +0100)
lib/group/database.php

index c5dd402b212833bca00ccdab9ca119c0269ed570..1e2328f4c08f32c59c6e87bea2fba82ef1fbcd3b 100644 (file)
@@ -219,21 +219,14 @@ class OC_Group_Database extends OC_Group_Backend {
         */\r
        public function DisplayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) {\r
                $displayNames = '';
-               /*
-               
-               SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo\r
-               FROM Persons\r
-               INNER JOIN Orders\r
-               ON Persons.P_Id=Orders.P_Id\r
-               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);\r
                $result = $stmt->execute(array($gid, $search.'%'));\r
                $users = array();\r
                while ($row = $result->fetchRow()) {
                        $displayName = trim($row['displayname'], ' ');\r
                        $displayNames[$row['uid']] = empty($displayName) ? $row['uid'] : $displayName;\r
-               }\r
+               }               \r
                return $displayNames;\r
        }
 }