MDL-50890 enrol_flatfile: Correcting typo and return

Would be safer to return nothing, execute methods don't have
a return. I understand this return 2 was inherited from the
previous cron function.
This commit is contained in:
David Monllao 2015-09-16 09:07:47 +08:00
parent fd1b399527
commit 6bc490e270
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class flatfile_sync_task extends \core\task\scheduled_task {
require_once($CFG->dirroot . '/enrol/flatfile/lib.php');
if (!enrol_is_enabled('flatfile')) {
return 2;
return;
}
// Instance of enrol_flatfile_plugin.

View File

@ -34,7 +34,7 @@
* $ php admin/tool/task/cli/schedule_task.php -h
*
* Execute task:
* $ sudo -u www-data /usr/bin/php admin/tool/task/cli/scheduled_task.php /
* $ sudo -u www-data /usr/bin/php admin/tool/task/cli/schedule_task.php /
* --execute=\\enrol_flatfile\\task\\flatfile_sync_task
*
* @package enrol_flatfile