From 0205678fcf4d7f01b924a1d8a13466eae1216805 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 24 Apr 2014 15:09:34 -0700 Subject: [PATCH] HtmlFormatter::filterContent() should always return an array Follow-up to 6289f3c48ca8dde511d227411e16b731d3c05328 Change-Id: Iac9c1440ac19590f778fc50c75b73da04a190f59 --- includes/HtmlFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HtmlFormatter.php b/includes/HtmlFormatter.php index 96ffe9ea5c..83d0530de2 100644 --- a/includes/HtmlFormatter.php +++ b/includes/HtmlFormatter.php @@ -138,7 +138,7 @@ class HtmlFormatter { if ( !$removals ) { wfProfileOut( __METHOD__ ); - return; + return array(); } $doc = $this->getDoc(); -- 2.20.1