From a6f69bb3e1f353056d3fc147b824c0f0df96e83d Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 15 Jun 2023 16:01:15 +0800 Subject: [PATCH] MDL-78165 mod_bigbluebuttonbn: Fetch cron status using API --- mod/bigbluebuttonbn/classes/output/view_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/bigbluebuttonbn/classes/output/view_page.php b/mod/bigbluebuttonbn/classes/output/view_page.php index 09339f85cb5..90848202b75 100644 --- a/mod/bigbluebuttonbn/classes/output/view_page.php +++ b/mod/bigbluebuttonbn/classes/output/view_page.php @@ -105,7 +105,7 @@ class view_page implements renderable, templatable { $templatedata->recordingwarnings = []; $check = new cronrunning(); $result = $check->get_result(); - if ($result->status != result::OK && $this->instance->is_moderator()) { + if ($result->get_status() != result::OK && $this->instance->is_moderator()) { $templatedata->recordingwarnings[] = (new notification( get_string('view_message_cron_disabled', 'mod_bigbluebuttonbn', $result->get_summary()),