Permalink
Browse files

MDL-11674

Changing back an issue that could cause dataloss.
  • Loading branch information...
1 parent 2f8d2e1 commit 817fb4cb01e15d1fa904fa0f3fc0b0fb86f53efd ericmerrill committed Jan 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/chat/lib.php
View
@@ -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);

0 comments on commit 817fb4c

Please sign in to comment.