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:
parent
963203224d
commit
292f387dd8
@ -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.*,
|
||||
|
Loading…
Reference in New Issue
Block a user