From: Daniel Cannon Date: Fri, 26 Oct 2007 03:59:16 +0000 (+0000) Subject: (bug 11588) API: Preserve document structure for empty dataset in backlinks query... X-Git-Tag: 1.31.0-rc.0~51080 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=ea107b7d00f98c6ff918f37ab73dea7961abff8f;p=lhc%2Fweb%2Fwiklou.git (bug 11588) API: Preserve document structure for empty dataset in backlinks query. (typo fix) --- 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);