From 08811301b8d984467942928942c3b2b67ee6c70e Mon Sep 17 00:00:00 2001 From: rkingdon Date: Wed, 8 Oct 2003 16:15:59 +0000 Subject: [PATCH] Fix in Cron routine to delete closed dialogues; Remove No entries on the Closed Dialogues pane to make it consistent with the other panes. --- mod/dialogue/lib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mod/dialogue/lib.php b/mod/dialogue/lib.php index 1d2ea6e86c7..9c592654671 100644 --- a/mod/dialogue/lib.php +++ b/mod/dialogue/lib.php @@ -346,7 +346,7 @@ function dialogue_delete_expired_conversations() { if ($dialogue->deleteafter) { $expirytime = time() - $dialogue->deleteafter * 86400; if ($conversations = get_records_select("dialogue_conversations", - "$timemodified < $expirytime AND closed = 1")) { + "timemodified < $expirytime AND closed = 1")) { foreach ($conversations as $conversation) { delete_records("dialogue_conversations", "id", $conversation->id); delete_records("dialogue_entries", "conversationid", $conversation->id); @@ -588,9 +588,6 @@ function dialogue_list_conversations_closed($dialogue, $user) { print_table($table); print_simple_box_end(); } - else { - print_string("noentry", "dialogue"); - } }