Skip to content

Commit

Permalink
MDL-41908 QuickForm: Fix PEAR Non-static method error
Browse files Browse the repository at this point in the history
  • Loading branch information
tlock committed Oct 1, 2013
1 parent f09119e commit 9c390d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pear/HTML/QuickForm.php
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9c390d6

Please sign in to comment.