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
Update docs to caution against use of create_function(). Per bug 15476.
[lhc/web/wiklou.git]
/
includes
/
FormOptions.php
diff --git
a/includes/FormOptions.php
b/includes/FormOptions.php
index
5888a0c
..
262c8c7
100644
(file)
--- a/
includes/FormOptions.php
+++ b/
includes/FormOptions.php
@@
-176,8
+176,8
@@
class FormOptions implements ArrayAccess {
throw new MWException( 'Unsupported datatype' );
}
- if ( $value !==
$default && $value !==
null ) {
- $this->options[$name]['value'] = $value;
+ if ( $value !== null ) {
+ $this->options[$name]['value'] = $value
=== $default ? null : $value
;
}
}
}