From: Robin Pepermans Date: Sat, 9 Jul 2011 21:13:57 +0000 (+0000) Subject: Bug 29792: notice undefined index 'other' due to my commit r91803 X-Git-Tag: 1.31.0-rc.0~28957 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=3dbd62f290023b668a48e2cc111b23746fce3d3e;p=lhc%2Fweb%2Fwiklou.git Bug 29792: notice undefined index 'other' due to my commit r91803 --- 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'; }