mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 05:00:06 +01:00
MDL-23486 fixed regression, sorrrrry
This commit is contained in:
parent
ff85f9022c
commit
e56458a7c7
@ -1506,6 +1506,8 @@ class HTML_QuickForm extends HTML_Common {
|
||||
//horrible horrible hack
|
||||
if (!isset($submitValue['text']) or $submitValue['text'] === '') {
|
||||
$result = false;
|
||||
} else {
|
||||
$result = true;
|
||||
}
|
||||
} elseif (is_array($submitValue) && !isset($rule['howmany'])) {
|
||||
$result = $registry->validate($rule['type'], $submitValue, $rule['format'], true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user