HtmlFormatter::filterContent() should always return an array
authorMax Semenik <maxsem.wiki@gmail.com>
Thu, 24 Apr 2014 22:09:34 +0000 (15:09 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Thu, 24 Apr 2014 22:09:34 +0000 (15:09 -0700)
Follow-up to 6289f3c48ca8dde511d227411e16b731d3c05328

Change-Id: Iac9c1440ac19590f778fc50c75b73da04a190f59

includes/HtmlFormatter.php

index 96ffe9e..83d0530 100644 (file)
@@ -138,7 +138,7 @@ class HtmlFormatter {
 
                if ( !$removals ) {
                        wfProfileOut( __METHOD__ );
-                       return;
+                       return array();
                }
 
                $doc = $this->getDoc();