Bug 29792: notice undefined index 'other' due to my commit r91803
authorRobin Pepermans <robin@users.mediawiki.org>
Sat, 9 Jul 2011 21:13:57 +0000 (21:13 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sat, 9 Jul 2011 21:13:57 +0000 (21:13 +0000)
includes/HTMLForm.php

index ffa1f4b..975ea6c 100644 (file)
@@ -1375,7 +1375,7 @@ class HTMLSelectOrOtherField extends HTMLTextField {
 
        function __construct( $params ) {
                if ( !in_array( 'other', $params['options'], true ) ) {
-                       $msg = $params['other'] ? $params['other'] : wfMsg( 'htmlform-selectorother-other' );
+                       $msg = isset( $params['other'] ) ? $params['other'] : wfMsg( 'htmlform-selectorother-other' );
                        $params['options'][$msg] = 'other';
                }