Merge "Perform a permission check on the title when changing the page language"
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLUsersMultiselectField.php
index 286cb8d..f094745 100644 (file)
@@ -63,14 +63,12 @@ class HTMLUsersMultiselectField extends HTMLUserTextField {
                if ( isset( $this->mParams['placeholder'] ) ) {
                        $params['placeholder'] = $this->mParams['placeholder'];
                } else {
-                       $params['placeholder'] = $this->msg( 'mw-widgets-usersmultiselect-placeholder' )
-                                                       ->inContentLanguage()
-                                                       ->plain();
+                       $params['placeholder'] = $this->msg( 'mw-widgets-usersmultiselect-placeholder' )->plain();
                }
 
                if ( !is_null( $value ) ) {
                        // $value is a string, but the widget expects an array
-                       $params['default'] = explode( "\n", $value );
+                       $params['default'] = $value === '' ? [] : explode( "\n", $value );
                }
 
                // Make the field auto-infusable when it's used inside a legacy HTMLForm rather than OOUIHTMLForm