From ea107b7d00f98c6ff918f37ab73dea7961abff8f Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Fri, 26 Oct 2007 03:59:16 +0000 Subject: [PATCH] (bug 11588) API: Preserve document structure for empty dataset in backlinks query. (typo fix) --- RELEASE-NOTES | 1 + includes/api/ApiQueryBacklinks.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 816a06ab3a..13bece1ee8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 7e4bb721a1..1f58d9aa70 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -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); -- 2.20.1