(bug 11588) API: Preserve document structure for empty dataset in backlinks query...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Fri, 26 Oct 2007 03:59:16 +0000 (03:59 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Fri, 26 Oct 2007 03:59:16 +0000 (03:59 +0000)
RELEASE-NOTES
includes/api/ApiQueryBacklinks.php

index 816a06a..13bece1 100644 (file)
@@ -143,6 +143,7 @@ Full API documentation is available at http://www.mediawiki.org/wiki/API
 * Add apdir parameter to enable listing all pages from Z to A
 * (bug 11721) Use a different title for results than for the help page.
 * (bug 11562) Added a user_registration parameter/field to the list=allusers query.
+* (bug 11588) Preserve document structure for empty dataset in backlinks query.
 
 === Languages updated in 1.12 ===
 
index 7e4bb72..1f58d9a 100644 (file)
@@ -179,7 +179,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
                }
                $db->freeResult($res);
 
-               if (is_null($resultPageSet) && !empty($data)) {
+               if (is_null($resultPageSet) && empty($data)) {
                        $result = $this->getResult();
                        $result->setIndexedTagName($data, $this->bl_code);
                        $result->addValue('query', $this->getModuleName(), $data);