Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 1035... Línea 1035...
1035
            if (!empty($data['enrolenddate']) and $data['enrolenddate'] < $data['enrolstartdate']) {
1035
            if (!empty($data['enrolenddate']) and $data['enrolenddate'] < $data['enrolstartdate']) {
1036
                $errors['enrolenddate'] = get_string('enrolenddaterror', 'enrol_self');
1036
                $errors['enrolenddate'] = get_string('enrolenddaterror', 'enrol_self');
1037
            }
1037
            }
1038
        }
1038
        }
Línea 1039... Línea 1039...
1039
 
1039
 
1040
        if (array_key_exists('expirynotify', $data)
1040
        // If expirynotify is selected, then ensure the threshold is at least one day.
1041
                && ($data['expirynotify'] > 0 || $data['customint2'])
-
 
1042
                && $data['expirythreshold'] < 86400) {
1041
        if (isset($data['expirynotify']) && $data['expirynotify'] > 0 && $data['expirythreshold'] < DAYSECS) {
1043
            $errors['expirythreshold'] = get_string('errorthresholdlow', 'core_enrol');
1042
            $errors['expirythreshold'] = get_string('errorthresholdlow', 'core_enrol');
Línea 1044... Línea 1043...
1044
        }
1043
        }
1045
 
1044