Skip to content

Commit

Permalink
MDL-11674
Browse files Browse the repository at this point in the history
Changing back an issue that could cause dataloss.
  • Loading branch information
ericmerrill committed Jan 9, 2008
1 parent 2f8d2e1 commit 817fb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/chat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 817fb4c

Please sign in to comment.