mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Merge branch 'MDL-75836' of https://github.com/jrchamp/moodle
This commit is contained in:
commit
d41a859d5a
@ -396,11 +396,10 @@ abstract class moodleform_mod extends moodleform {
|
||||
// form verification
|
||||
function validation($data, $files) {
|
||||
global $COURSE, $DB, $CFG;
|
||||
$errors = parent::validation($data, $files);
|
||||
|
||||
$mform =& $this->_form;
|
||||
|
||||
$errors = array();
|
||||
$errors = parent::validation($data, $files);
|
||||
|
||||
if ($mform->elementExists('name')) {
|
||||
$name = trim($data['name']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user