mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-75836' of https://github.com/jrchamp/moodle
This commit is contained in:
commit
d41a859d5a
1 changed files with 1 additions and 2 deletions
|
@ -396,11 +396,10 @@ abstract class moodleform_mod extends moodleform {
|
||||||
// form verification
|
// form verification
|
||||||
function validation($data, $files) {
|
function validation($data, $files) {
|
||||||
global $COURSE, $DB, $CFG;
|
global $COURSE, $DB, $CFG;
|
||||||
$errors = parent::validation($data, $files);
|
|
||||||
|
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
|
|
||||||
$errors = array();
|
$errors = parent::validation($data, $files);
|
||||||
|
|
||||||
if ($mform->elementExists('name')) {
|
if ($mform->elementExists('name')) {
|
||||||
$name = trim($data['name']);
|
$name = trim($data['name']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue