From 3dbd62f290023b668a48e2cc111b23746fce3d3e Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Sat, 9 Jul 2011 21:13:57 +0000 Subject: [PATCH] Bug 29792: notice undefined index 'other' due to my commit r91803 --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index ffa1f4b9ce..975ea6cf8d 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -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'; } -- 2.20.1