]> git.mjollnir.org Git - moodle.git/commitdiff
mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674
authormartinlanghoff <martinlanghoff>
Tue, 8 Jan 2008 22:36:17 +0000 (22:36 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 8 Jan 2008 22:36:17 +0000 (22:36 +0000)
mod/chat/lib.php

index 87ecc56066e852c755a4074b571cf2c0d0f3441d..4842fbfedc93e190f3d0cb7f3a74f8511895237f 100644 (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);