diff --git a/file/lib/page/ChatMessagePage.class.php b/file/lib/page/ChatMessagePage.class.php index 873e95a..106bd09 100644 --- a/file/lib/page/ChatMessagePage.class.php +++ b/file/lib/page/ChatMessagePage.class.php @@ -67,8 +67,11 @@ public function readUsers() { AND fieldValue = ".intval($this->roomID); $stmt = WCF::getDB()->prepareStatement($sql); $stmt->execute(); + $userIDs = array(); while ($row = $stmt->fetchArray()) $userIDs[] = $row['userID']; + if (!count($userIDs)) return; + $sql = "SELECT * FROM