diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index bb56a09..d42fb9a 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -134,7 +134,7 @@ public function readData() { } if (MODULE_ATTACHMENT) { - $this->attachmentHandler = new \wcf\system\attachment\AttachmentHandler('be.bastelstu.chat.message', 0, '', 0); + $this->attachmentHandler = new \wcf\system\attachment\AttachmentHandler('be.bastelstu.chat.message', 0, \wcf\util\StringUtil::getRandomID(), 0); } }