From 8db0bcc018ba19d4429e666a53444809f331d090 Mon Sep 17 00:00:00 2001 From: sam marshall Date: Wed, 31 May 2017 14:08:49 +0100 Subject: [PATCH] MDL-59096 Tasks: Web running local plugin scheduled tasks fails --- lib/cronlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cronlib.php b/lib/cronlib.php index 164a7673bdd..55626a4c90d 100644 --- a/lib/cronlib.php +++ b/lib/cronlib.php @@ -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; }