mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-24 02:20:39 +00:00
Improve ChatRoom::getUsers()
This commit is contained in:
parent
963203224d
commit
292f387dd8
@ -167,9 +167,9 @@ class ChatRoom extends \wcf\data\DatabaseObject implements \wcf\system\request\I
|
||||
$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.*,
|
||||
|
Loading…
x
Reference in New Issue
Block a user