dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Handle null data return in HTMLForm"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLForm.php
diff --git
a/includes/htmlform/HTMLForm.php
b/includes/htmlform/HTMLForm.php
index
6f88975
..
8f8caf2
100644
(file)
--- a/
includes/htmlform/HTMLForm.php
+++ b/
includes/htmlform/HTMLForm.php
@@
-1493,7
+1493,7
@@
class HTMLForm extends ContextSource {
foreach ( $fields as $key => $value ) {
if ( $value instanceof HTMLFormField ) {
- $v =
isset( $this->mFieldData[$key]
)
+ $v =
array_key_exists( $key, $this->mFieldData
)
? $this->mFieldData[$key]
: $value->getDefault();