Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 106... Línea 106...
106
     * Add new instance of enrol plugin.
106
     * Add new instance of enrol plugin.
107
     * @param object $course
107
     * @param object $course
108
     * @param array $fields instance fields
108
     * @param array $fields instance fields
109
     * @return int id of new instance, null if can not be created
109
     * @return int id of new instance, null if can not be created
110
     */
110
     */
111
    public function add_instance($course, array $fields = null) {
111
    public function add_instance($course, ?array $fields = null) {
112
        global $CFG;
112
        global $CFG;
Línea 113... Línea 113...
113
 
113
 
114
        // Allows multiple cohorts to be set on creation.
114
        // Allows multiple cohorts to be set on creation.
115
        if (!empty($fields['customint1'])) {
115
        if (!empty($fields['customint1'])) {