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.
require_once($CFG->dirroot . '/enrol/flatfile/lib.php');
if (!enrol_is_enabled('flatfile')) {
- return 2;
+ return;
}
// Instance of enrol_flatfile_plugin.
* $ 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