Index: trunk/phase3/includes/FormOptions.php |
— | — | @@ -176,8 +176,8 @@ |
177 | 177 | throw new MWException( 'Unsupported datatype' ); |
178 | 178 | } |
179 | 179 | |
180 | | - if ( $value !== $default && $value !== null ) { |
181 | | - $this->options[$name]['value'] = $value; |
| 180 | + if ( $value !== null ) { |
| 181 | + $this->options[$name]['value'] = $value === $default ? null : $value; |
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |