From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/FormOptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/FormOptions.php') 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; } } } -- cgit v1.2.2