Skip to content
Browse files

MDL-41908 QuickForm: Fix PEAR Non-static method error

  • Loading branch information...
1 parent 34d5505 commit d93610d4b01d933f3543af552dfbbb2c11450827 @tlock tlock committed with danpoltawski
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/pear/HTML/QuickForm.php
View
6 lib/pear/HTML/QuickForm.php
@@ -600,7 +600,8 @@ function &addElement($element)
} else {
$args = func_get_args();
$elementObject =& $this->_loadElement('addElement', $element, array_slice($args, 1));
- if (@PEAR::isError($elementObject)) {
+ $pear = new PEAR();
+ if ($pear->isError($elementObject)) {
return $elementObject;
}
}
@@ -1875,7 +1876,8 @@ function exportValues($elementList = null)
}
foreach ($elementList as $elementName) {
$value = $this->exportValue($elementName);
- if (PEAR::isError($value)) {
+ $pear = new PEAR();
+ if ($pear->isError($value)) {
return $value;
}
$values[$elementName] = $value;

0 comments on commit d93610d

Please sign in to comment.
Something went wrong with that request. Please try again.