Page MenuHomePhabricator

Title.php: getParentCategories *sometimes* returns string....
Closed, ResolvedPublic

Description

Author: mati

Description:
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.


Version: 1.11.x
Severity: enhancement

Details

Reference
bz11468

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:01 PM
bzimport set Reference to bz11468.
bzimport added a subscriber: Unknown Object (MLST).

mati wrote:

patches the mentioned annoyance

Attached:

This seems to have been fixed in the meantime.