From 16ac5ce574ef1f641ebdab0e47b1359ad00fb0b0 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 23 Oct 2007 14:19:48 +0000 Subject: [PATCH] (bug 11744) Incorrect return value from Title::getParentCategories() --- RELEASE-NOTES | 3 ++- includes/Title.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1a272464b7..5163510a2d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -1,4 +1,4 @@ -= MediaWiki release notes = += MediaWiki release notes = Security reminder: MediaWiki does not require PHP's register_globals setting since version 1.2.0. If you have it on, turn it *off* if you can. @@ -113,6 +113,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 11452) wfMsgExt uses sometimes wrong language object for parsing magic words when called with options ''parsemag'' or ''content''. * (bug 11727) Support plural in 'historysize' message +* (bug 11744) Incorrect return value from Title::getParentCategories() === API changes in 1.12 === diff --git a/includes/Title.php b/includes/Title.php index 5a6226131f..2e0f686693 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2493,7 +2493,7 @@ class Title { $data[$wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText(); $dbr->freeResult ( $res ) ; } else { - $data = ''; + $data = array(); } return $data; } -- 2.20.1