diff --git a/file/lib/page/ChatMessagePage.class.php b/file/lib/page/ChatMessagePage.class.php index 97de2f7..f8d7150 100644 --- a/file/lib/page/ChatMessagePage.class.php +++ b/file/lib/page/ChatMessagePage.class.php @@ -116,15 +116,14 @@ public function readMessages() { // update last seen message $sql = "SELECT - MAX(messageID) as messageID + MAX(messageID) FROM wcf".WCF_N."_chat_message"; $stmt = WCF::getDB()->prepareStatement($sql); $stmt->execute(); - $row = $stmt->fetchArray(); \wcf\util\ChatUtil::writeUserData(array( - 'lastSeen' => $row['messageID'], + 'lastSeen' => $stmt->fetchColumn(), 'lastActivity' => TIME_NOW )); }