From: Alexandre Emsenhuber Date: Fri, 25 Jul 2008 18:06:29 +0000 (+0000) Subject: Per r38036: also fix FormOptions X-Git-Tag: 1.31.0-rc.0~46370 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=bd84f4e6a021bcba3bd251155153fc6dcaaa6801;p=lhc%2Fweb%2Fwiklou.git Per r38036: also fix FormOptions --- diff --git a/includes/FormOptions.php b/includes/FormOptions.php index 5888a0c431..262c8c7fb5 100644 --- 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; } } }