diff --git a/html/inc/forum_db.inc b/html/inc/forum_db.inc
index c63c4a74cb..3cf5fd53ce 100644
--- a/html/inc/forum_db.inc
+++ b/html/inc/forum_db.inc
@@ -190,26 +190,27 @@ class BoincForumLogging {
}
self::$cache[$threadid] = $x;
}
- static function cleanup() {
- // TODO - clean this up
-
+ static function delete_aux($clause) {
$db = BoincDb::get();
- $sql = "SELECT timestamp FROM ".$db->db_name.".forum_logging where userid=0 and threadid=0";
- $result=$db->do_query($sql);
- if (mysql_num_rows($result)>0) {
- $data=mysql_fetch_object($result);
- if ($data->timestamp