mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
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:
parent
fd1b399527
commit
6bc490e270
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user