From: Aaron Schulz Date: Sun, 18 May 2008 16:09:56 +0000 (+0000) Subject: $parents is an array (bug 14169) X-Git-Tag: 1.31.0-rc.0~47554 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=9b3b97a9671ad41c8a7f39088867224c54c6c3bb;p=lhc%2Fweb%2Fwiklou.git $parents is an array (bug 14169) --- diff --git a/includes/Title.php b/includes/Title.php index e1422f4b61..792411f896 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2857,7 +2857,7 @@ class Title { $stack = array(); $parents = $this->getParentCategories(); - if($parents != '') { + if( $parents ) { foreach($parents as $parent => $current) { if ( array_key_exists( $parent, $children ) ) { # Circular reference