Display the page title on pages named '0'

Using empty() will consider the string '0' to be false, so use isset instead.

Bug: T103077
Change-Id: I4b07d55ba59cbbc9eeb3784fbbe8ae9e9ae15c3a
This commit is contained in:
Kunal Mehta 2015-06-24 10:15:27 -07:00
parent 3e582850e7
commit a85145a5c8
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class VectorTemplate extends BaseTemplate {
if ( is_callable( array( $this, 'getIndicators' ) ) ) {
echo $this->getIndicators();
}
if ( !empty( $this->data['title'] ) ) {
if ( isset( $this->data['title'] ) ) {
?>
<h1 id="firstHeading" class="firstHeading" lang="<?php $this->text( 'pageLanguage' ); ?>"><?php
$this->html( 'title' )