dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da174ad
)
ignore invalid titles in getParentCategoryTree()
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 24 Aug 2006 17:35:42 +0000
(17:35 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 24 Aug 2006 17:35:42 +0000
(17:35 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
6f740dc
..
7eae801
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-2148,7
+2148,9
@@
class Title {
$stack[$parent] = array();
} else {
$nt = Title::newFromText($parent);
- $stack[$parent] = $nt->getParentCategoryTree( $children + array($parent => 1) );
+ if ( $nt ) {
+ $stack[$parent] = $nt->getParentCategoryTree( $children + array($parent => 1) );
+ }
}
}
return $stack;