aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLUsersMultiselectField.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLUsersMultiselectField.php')
-rw-r--r--includes/htmlform/fields/HTMLUsersMultiselectField.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/htmlform/fields/HTMLUsersMultiselectField.php b/includes/htmlform/fields/HTMLUsersMultiselectField.php
index acdae75f7b32..3fa0ab0a9665 100644
--- a/includes/htmlform/fields/HTMLUsersMultiselectField.php
+++ b/includes/htmlform/fields/HTMLUsersMultiselectField.php
@@ -101,11 +101,8 @@ class HTMLUsersMultiselectField extends HTMLUserTextField {
$params['default'] = $this->mParams['default'];
}
- if ( isset( $this->mParams['placeholder'] ) ) {
- $params['placeholder'] = $this->mParams['placeholder'];
- } else {
- $params['placeholder'] = $this->msg( 'mw-widgets-usersmultiselect-placeholder' )->plain();
- }
+ $params['placeholder'] = $this->mParams['placeholder'] ??
+ $this->msg( 'mw-widgets-usersmultiselect-placeholder' )->plain();
if ( isset( $this->mParams['max'] ) ) {
$params['tagLimit'] = $this->mParams['max'];