From 95fb95cb3eb7ed0eec93bcc22d072f64dfb2f9e8 Mon Sep 17 00:00:00 2001 From: ericmerrill Date: Wed, 9 Jan 2008 02:08:04 +0000 Subject: [PATCH] MDL-11674 Undid change that could result in dataloss. --- mod/chat/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 6b00d5abe67..072ba9cebd5 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);