From 767349cbb42c77f31952d24000c255acce20abd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 25 Jun 2015 13:51:46 +0200 Subject: [PATCH] Don't output an empty h1 element (once more, with feeling) Bug: T103077 Change-Id: I1a6944bb3da465a1cdcd1ce12aecfd19f4865ec9 --- MonoBookTemplate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MonoBookTemplate.php b/MonoBookTemplate.php index 259b9ef..71170d5 100644 --- a/MonoBookTemplate.php +++ b/MonoBookTemplate.php @@ -57,7 +57,8 @@ class MonoBookTemplate extends BaseTemplate { getIndicators(); - if ( isset( $this->data['title'] ) ) { + // Loose comparison with '!=' is intentional, to catch null and false too, but not '0' + if ( $this->data['title'] != '' ) { ?>