MDL-70919 core_form: non-static method can not be called statically

This commit is contained in:
Marina Glancy 2021-03-18 12:15:49 +01:00
parent fc335f5ea0
commit c79e72085b

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!