1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix MessageAction - seconds are not minutes

This commit is contained in:
Maximilian Mader 2013-07-29 18:10:06 +02:00
parent bb185fc712
commit fd17e10e8b

View File

@ -35,7 +35,7 @@ public function prune() {
WHERE WHERE
time < ?"; time < ?";
$stmt = \wcf\system\WCF::getDB()->prepareStatement($sql); $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(); $objectIDs = array();
while ($objectID = $stmt->fetchColumn()) $objectIDs[] = $objectID; while ($objectID = $stmt->fetchColumn()) $objectIDs[] = $objectID;