diff options
Diffstat (limited to 'maintenance/includes/TextPassDumper.php')
-rw-r--r-- | maintenance/includes/TextPassDumper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/includes/TextPassDumper.php b/maintenance/includes/TextPassDumper.php index 8483c423b1bc..bbe896ca31f5 100644 --- a/maintenance/includes/TextPassDumper.php +++ b/maintenance/includes/TextPassDumper.php @@ -929,12 +929,12 @@ TEXT unset( $attribs['id'] ); unset( $attribs['location'] ); - if ( strlen( $text ) > 0 ) { + if ( $text !== '' ) { $attribs['xml:space'] = 'preserve'; } $this->openElement = [ $name, $attribs ]; - if ( strlen( $text ) > 0 ) { + if ( $text !== '' ) { $this->characterData( $parser, $text ); } } else { |