summaryrefslogtreecommitdiff
path: root/includes/FormOptions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/FormOptions.php')
-rw-r--r--includes/FormOptions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/FormOptions.php b/includes/FormOptions.php
index 5888a0c4..262c8c7f 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;
}
}
}