diff --git a/file/lib/data/chat/room/ChatRoom.class.php b/file/lib/data/chat/room/ChatRoom.class.php index ef189ef..de42c30 100644 --- a/file/lib/data/chat/room/ChatRoom.class.php +++ b/file/lib/data/chat/room/ChatRoom.class.php @@ -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.*,