From a85145a5c8951288c68a7491c1790dd3dd76e91c Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 24 Jun 2015 10:15:27 -0700 Subject: [PATCH] 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 --- VectorTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VectorTemplate.php b/VectorTemplate.php index 556a0b8..eca1ae4 100644 --- a/VectorTemplate.php +++ b/VectorTemplate.php @@ -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'] ) ) { ?>

html( 'title' )