Fix in Cron routine to delete closed dialogues; Remove No entries on

the Closed Dialogues pane to make it consistent with the other panes.
This commit is contained in:
rkingdon 2003-10-08 16:15:59 +00:00
parent 6dfa542d1d
commit 08811301b8

View File

@ -346,7 +346,7 @@ function dialogue_delete_expired_conversations() {
if ($dialogue->deleteafter) { if ($dialogue->deleteafter) {
$expirytime = time() - $dialogue->deleteafter * 86400; $expirytime = time() - $dialogue->deleteafter * 86400;
if ($conversations = get_records_select("dialogue_conversations", if ($conversations = get_records_select("dialogue_conversations",
"$timemodified < $expirytime AND closed = 1")) { "timemodified < $expirytime AND closed = 1")) {
foreach ($conversations as $conversation) { foreach ($conversations as $conversation) {
delete_records("dialogue_conversations", "id", $conversation->id); delete_records("dialogue_conversations", "id", $conversation->id);
delete_records("dialogue_entries", "conversationid", $conversation->id); delete_records("dialogue_entries", "conversationid", $conversation->id);
@ -588,9 +588,6 @@ function dialogue_list_conversations_closed($dialogue, $user) {
print_table($table); print_table($table);
print_simple_box_end(); print_simple_box_end();
} }
else {
print_string("noentry", "dialogue");
}
} }