diff options
author | Fomafix <fomafix@googlemail.com> | 2018-06-27 22:13:01 +0200 |
---|---|---|
committer | Fomafix <fomafix@googlemail.com> | 2018-06-28 11:25:39 +0200 |
commit | f02eed24ac2e152b40cda19d5fbb3b1346b2e7d8 (patch) | |
tree | 1486126014c68f70655f1492f8ea394e1441b657 /includes/htmlform/fields/HTMLFormFieldCloner.php | |
parent | c04f2eb05d1babda486275fe88d872f7b0393d30 (diff) | |
download | mediawikicore-f02eed24ac2e152b40cda19d5fbb3b1346b2e7d8.tar.gz mediawikicore-f02eed24ac2e152b40cda19d5fbb3b1346b2e7d8.zip |
Allow overloading of getLabel() with return ' '
This is a follow-up to 125cbd8c017b872c78f047c08f494a458883db23.
Bug: T198338
Change-Id: I21626326dde368d70fcc33052e43ff90db5ea9c0
Diffstat (limited to 'includes/htmlform/fields/HTMLFormFieldCloner.php')
-rw-r--r-- | includes/htmlform/fields/HTMLFormFieldCloner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/htmlform/fields/HTMLFormFieldCloner.php b/includes/htmlform/fields/HTMLFormFieldCloner.php index dec162fe5038..aae3af262f2d 100644 --- a/includes/htmlform/fields/HTMLFormFieldCloner.php +++ b/includes/htmlform/fields/HTMLFormFieldCloner.php @@ -296,7 +296,7 @@ class HTMLFormFieldCloner extends HTMLFormField { $html .= $field->$getFieldHtmlMethod( $v ); $labelValue = trim( $field->getLabel() ); - if ( $labelValue != "\u{00A0}" && $labelValue !== '' ) { + if ( $labelValue !== "\u{00A0}" && $labelValue !== ' ' && $labelValue !== '' ) { $hasLabel = true; } } |