Update docs to caution against use of create_function(). Per bug 15476.
[lhc/web/wiklou.git] / includes / FormOptions.php
index 5888a0c..262c8c7 100644 (file)
@@ -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;
                        }
                }
        }