Merge "HtmlFormatter::filterContent() should always return an array"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 24 Apr 2014 22:14:48 +0000 (22:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 24 Apr 2014 22:14:48 +0000 (22:14 +0000)
includes/HtmlFormatter.php

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