From: Tim Starling Date: Thu, 24 Aug 2006 17:35:42 +0000 (+0000) Subject: ignore invalid titles in getParentCategoryTree() X-Git-Tag: 1.31.0-rc.0~55909 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=7b25ff572c553a5f7bb86be40f22bbc9e5c4e4c9;p=lhc%2Fweb%2Fwiklou.git ignore invalid titles in getParentCategoryTree() --- diff --git a/includes/Title.php b/includes/Title.php index 6f740dcac4..7eae801723 100644 --- 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;