1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Improve ChatRoom::getUsers()

This commit is contained in:
Tim Düsterhus 2013-01-14 20:56:22 +01:00
parent 963203224d
commit 292f387dd8

View File

@ -167,9 +167,9 @@ public function getUsers() {
$stmt = WCF::getDB()->prepareStatement($sql);
$stmt->execute(array('roomID', $this->roomID));
$userIDs = array();
while ($userIDs[] = $stmt->fetchColumn());
while ($userID = $stmt->fetchColumn()) $userIDs[] = $userID;
if (!count($userIDs)) return array();
if (empty($userIDs)) return array();
$sql = "SELECT
u.*,