From 51278f2d1019b0b630241d79b08a16b596908faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 25 Jun 2015 13:52:44 +0200 Subject: [PATCH] Don't output an empty h1 element (once more, with feeling) Bug: T103077 Change-Id: I786fb10c5688d13b779e84b4d83efc6c0fd992d8 --- VectorTemplate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VectorTemplate.php b/VectorTemplate.php index eca1ae4..ec2c87a 100644 --- a/VectorTemplate.php +++ b/VectorTemplate.php @@ -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'] != '' ) { ?>

html( 'title' )