aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLSelectOrOtherField.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLSelectOrOtherField.php')
-rw-r--r--includes/htmlform/fields/HTMLSelectOrOtherField.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/htmlform/fields/HTMLSelectOrOtherField.php b/includes/htmlform/fields/HTMLSelectOrOtherField.php
index fb133f20e5d0..91050a0cc672 100644
--- a/includes/htmlform/fields/HTMLSelectOrOtherField.php
+++ b/includes/htmlform/fields/HTMLSelectOrOtherField.php
@@ -12,9 +12,7 @@ class HTMLSelectOrOtherField extends HTMLTextField {
$this->getOptions();
if ( !in_array( 'other', $this->mOptions, true ) ) {
$msg =
- isset( $params['other'] )
- ? $params['other']
- : wfMessage( 'htmlform-selectorother-other' )->text();
+ $params['other'] ?? wfMessage( 'htmlform-selectorother-other' )->text();
// Have 'other' always as first element
$this->mOptions = [ $msg => 'other' ] + $this->mOptions;
}