From 9b3b97a9671ad41c8a7f39088867224c54c6c3bb Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 18 May 2008 16:09:56 +0000 Subject: [PATCH] $parents is an array (bug 14169) --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1