Last modified: 2010-05-15 15:59:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13468, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11468 - Title.php: getParentCategories *sometimes* returns string....
Title.php: getParentCategories *sometimes* returns string....
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.11.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-26 22:27 UTC by Mathias Ertl
Modified: 2010-05-15 15:59 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patches the mentioned annoyance (53 bytes, patch)
2007-09-26 22:30 UTC, Mathias Ertl
Details

Description Mathias Ertl 2007-09-26 22:27:50 UTC
the function getParentCategories() in includes/Title.php usually returns an array of categories, but returns an empty string if a page belongs to no categories.The offending code is in line 2472 in Title.php.

The attached (trivial) patch makes the function return an empty array instead of an empty string if no results are found.
Comment 1 Mathias Ertl 2007-09-26 22:30:40 UTC
Created attachment 4165 [details]
patches the mentioned annoyance
Comment 2 Brion Vibber 2008-03-14 23:09:50 UTC
This seems to have been fixed in the meantime.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links