Merge branch 'MDL-59096-m33' of https://github.com/sammarshallou/moodle into MOODLE_33_STABLE
This commit is contained in:
+1
-1
@@ -203,7 +203,7 @@ function cron_run_single_task(\core\task\scheduled_task $task) {
|
||||
}
|
||||
$component = $task->get_component();
|
||||
if ($plugininfo = core_plugin_manager::instance()->get_plugin_info($component)) {
|
||||
if (!$plugininfo->is_enabled() && !$task->get_run_if_component_disabled()) {
|
||||
if ($plugininfo->is_enabled() === false && !$task->get_run_if_component_disabled()) {
|
||||
echo "Component is not enabled ($component).\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user