$parents is an array (bug 14169)
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 18 May 2008 16:09:56 +0000 (16:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 18 May 2008 16:09:56 +0000 (16:09 +0000)
includes/Title.php

index e1422f4..792411f 100644 (file)
@@ -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