dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
849dda2
)
Do not try to parse empty argument in getErrorsOrWarnings in OOUI
author
Amir Sarabadani
<ladsgroup@gmail.com>
Mon, 12 Jun 2017 11:33:17 +0000
(16:03 +0430)
committer
Amir Sarabadani
<ladsgroup@gmail.com>
Mon, 12 Jun 2017 11:33:17 +0000
(16:03 +0430)
Bug: T167644
Change-Id: I0dcb9bd51ad0cecbdab868fed056b4077d1c9fa8
includes/htmlform/OOUIHTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/htmlform/OOUIHTMLForm.php
b/includes/htmlform/OOUIHTMLForm.php
index
6650321
..
ed99802
100644
(file)
--- a/
includes/htmlform/OOUIHTMLForm.php
+++ b/
includes/htmlform/OOUIHTMLForm.php
@@
-191,6
+191,10
@@
class OOUIHTMLForm extends HTMLForm {
* @return string
*/
public function getErrorsOrWarnings( $elements, $elementsType ) {
+ if ( $elements === '' ) {
+ return '';
+ }
+
if ( !in_array( $elementsType, [ 'error', 'warning' ], true ) ) {
throw new DomainException( $elementsType . ' is not a valid type.' );
}