From: ericmerrill Date: Wed, 9 Jan 2008 02:13:52 +0000 (+0000) Subject: MDL-11674 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=817fb4cb01e15d1fa904fa0f3fc0b0fb86f53efd;p=moodle.git MDL-11674 Changing back an issue that could cause dataloss. --- diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 4842fbfedc..87ecc56066 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -212,7 +212,7 @@ function chat_cron () { $sql = "DELETE FROM {$CFG->prefix}chat_messages - WHERE ($subselect) IS NOT NULL AND timestamp < ( ".time()." -($subselect) * 24 * 3600)"; + WHERE ($subselect) > 0 AND timestamp < ( ".time()." -($subselect) * 24 * 3600)"; execute_sql($sql, false);