Don't output an empty h1 element (once more, with feeling)

Bug: T103077
Change-Id: I786fb10c5688d13b779e84b4d83efc6c0fd992d8
This commit is contained in:
Bartosz Dziewoński 2015-06-25 13:52:44 +02:00
parent 5787f88c8b
commit 51278f2d10
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ class VectorTemplate extends BaseTemplate {
if ( is_callable( array( $this, 'getIndicators' ) ) ) {
echo $this->getIndicators();
}
if ( isset( $this->data['title'] ) ) {
// Loose comparison with '!=' is intentional, to catch null and false too, but not '0'
if ( $this->data['title'] != '' ) {
?>
<h1 id="firstHeading" class="firstHeading" lang="<?php $this->text( 'pageLanguage' ); ?>"><?php
$this->html( 'title' )