From fd17e10e8b21b84f4ded1764f00a45a77c30cf67 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Mon, 29 Jul 2013 18:10:06 +0200 Subject: [PATCH] Fix MessageAction - seconds are not minutes --- file/lib/data/message/MessageAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/data/message/MessageAction.class.php b/file/lib/data/message/MessageAction.class.php index 4c6f0e7..7d8caf4 100644 --- a/file/lib/data/message/MessageAction.class.php +++ b/file/lib/data/message/MessageAction.class.php @@ -35,7 +35,7 @@ public function prune() { WHERE time < ?"; $stmt = \wcf\system\WCF::getDB()->prepareStatement($sql); - $stmt->execute(array(TIME_NOW - CHAT_LOG_ARCHIVETIME)); + $stmt->execute(array(TIME_NOW - CHAT_LOG_ARCHIVETIME * 60)); $objectIDs = array(); while ($objectID = $stmt->fetchColumn()) $objectIDs[] = $objectID;