mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 23:48:45 +01:00
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:
parent
6dfa542d1d
commit
08811301b8
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user