Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ public function get_cron_tasks(&$cronlock, $get_last_task = false)
$prune = $this->db->sql_fetchrow($result);
$rows[] = array(
"config_name" => "prune_forum_last_gc", // This is the time of the last Cron Job, not the time of pruned forums.
"config_value" => $prune['prune_next'] - $prune['prune_time'],
"config_value" => ($prune['prune_next'] ?? 0) - ($prune['prune_time'] ?? 0),
);
$rows[] = array(
"config_name" => "prune_forum_gc",
"config_value" => $prune['prune_time'],
"config_value" => $prune['prune_time'] ?? 0,
);
$this->db->sql_freeresult($result);

Expand All @@ -155,11 +155,11 @@ public function get_cron_tasks(&$cronlock, $get_last_task = false)
$prune_shadow = $this->db->sql_fetchrow($result);
$rows[] = array(
"config_name" => "prune_shadow_topics_last_gc", // This is the time of the last Cron Job, not the time of pruned shadow topics.
"config_value" => $prune_shadow['prune_shadow_next'] - $prune_shadow['prune_shadow_time'],
"config_value" => ($prune_shadow['prune_shadow_next'] ?? 0) - ($prune_shadow['prune_shadow_time'] ?? 0),
);
$rows[] = array(
"config_name" => "prune_shadow_topics_gc",
"config_value" => $prune_shadow['prune_shadow_time'],
"config_value" => $prune_shadow['prune_shadow_time'] ?? 0,
);
$this->db->sql_freeresult($result);

Expand Down