Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09119e
)
MDL-41908 QuickForm: Fix PEAR Non-static method error
author
Tim Lock
<tim.lock@netspot.com.au>
Fri, 20 Sep 2013 00:15:26 +0000
(09:45 +0930)
committer
Tim Lock
<tim.lock@netspot.com.au>
Tue, 1 Oct 2013 00:23:26 +0000
(09:53 +0930)
lib/pear/HTML/QuickForm.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/pear/HTML/QuickForm.php
b/lib/pear/HTML/QuickForm.php
index
af116b2
..
6da6ff4
100644
(file)
--- a/
lib/pear/HTML/QuickForm.php
+++ b/
lib/pear/HTML/QuickForm.php
@@
-600,7
+600,8
@@
class HTML_QuickForm extends HTML_Common {
} 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
@@
class HTML_QuickForm extends HTML_Common {
}
foreach ($elementList as $elementName) {
$value = $this->exportValue($elementName);
- if (PEAR::isError($value)) {
+ $pear = new PEAR();
+ if ($pear->isError($value)) {
return $value;
}
$values[$elementName] = $value;