Page MenuHomePhabricator

Notice about undefined variable $stack in Title::getParentCategoryTree metod
Closed, ResolvedPublic

Description

Author: aik.bold

Description:
Notice about undefined variable $stack in Title::getParentCategoryTree metod. Problem is in this code:
if($parents != '') {
....
}
because in 1.11 version metod Title::getParentCategories used by this one returned empty string, when no parent categories were found. Now (in 1.12) it returns empty array.

I propose to change condition, mentioned above to:
if($parents) {
....
}


Version: 1.12.x
Severity: minor
OS: Windows XP
Platform: PC

Details

Reference
bz14169

Event Timeline

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