From 48f390046d5026737cd4dc01acf86a5dfe4f77c3 Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Wed, 27 Oct 2021 16:16:29 +1100 Subject: [PATCH] MDL-72924 check: Fix component initialisation for performance checks --- lib/classes/check/manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/check/manager.php b/lib/classes/check/manager.php index 62cc21cdb9d..c9e3aba2dfb 100644 --- a/lib/classes/check/manager.php +++ b/lib/classes/check/manager.php @@ -78,7 +78,7 @@ class manager { foreach ($plugins as $plugin => $pluginfunction) { $result = $pluginfunction(); foreach ($result as $check) { - $check->component = $plugintype . '_' . $plugin; + $check->set_component($plugintype . '_' . $plugin); $checks[] = $check; } }