1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Order followed users alphabetically in invitation form

This commit is contained in:
Tim Düsterhus 2015-03-21 20:37:42 +01:00
parent 87919dd881
commit d65595649d

View File

@ -63,6 +63,7 @@ public function validatePrepareInvite() {
public function prepareInvite() { public function prepareInvite() {
$followingList = new \wcf\data\user\follow\UserFollowingList(); $followingList = new \wcf\data\user\follow\UserFollowingList();
$followingList->getConditionBuilder()->add('user_follow.userID = ?', array(WCF::getUser()->userID)); $followingList->getConditionBuilder()->add('user_follow.userID = ?', array(WCF::getUser()->userID));
$followingList->sqlOrderBy = 'username ASC';
$followingList->readObjects(); $followingList->readObjects();
$users = $followingList->getObjects(); $users = $followingList->getObjects();