Last modified: 2010-05-15 15:54:46 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 T16169, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14169 - Notice about undefined variable $stack in Title::getParentCategoryTree metod
Notice about undefined variable $stack in Title::getParentCategoryTree metod
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.12.x
PC Windows XP
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-18 11:08 UTC by Alexander Obuhovich
Modified: 2010-05-15 15:54 UTC (History)
1 user (show)

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


Attachments

Description Alexander Obuhovich 2008-05-18 11:08:46 UTC
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) {
....
}
Comment 1 Aaron Schulz 2008-05-18 16:10:10 UTC
Fixed in r35021

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


Navigation
Links