mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674

This commit is contained in:
martinlanghoff
2008-01-08 22:36:17 +00:00
parent 46decdf5d9
commit 7ce4ce0aa4
+1 -1
View File
@@ -212,7 +212,7 @@ function chat_cron () {
$sql = "DELETE
FROM {$CFG->prefix}chat_messages
WHERE ($subselect) > 0 AND timestamp < ( ".time()." -($subselect) * 24 * 3600)";
WHERE ($subselect) IS NOT NULL AND timestamp < ( ".time()." -($subselect) * 24 * 3600)";
execute_sql($sql, false);