Merge branch 'MDL-70919-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Andrew Nicols 2021-03-22 07:44:26 +08:00
commit b171685d6e

View File

@ -2271,7 +2271,7 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
}
foreach ($elementList as $elementName) {
$value = $this->exportValue($elementName);
if (@PEAR::isError($value)) {
if ((new PEAR())->isError($value)) {
return $value;
}
//oh, stock QuickFOrm was returning array of arrays!