Index: trunk/extensions/SelectCategory/SelectCategory_body.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | |
189 | 189 | # Get current namespace (save duplicate call of method) |
190 | 190 | $namespace = $wgTitle->getNamespace(); |
191 | | - if( $namespace >= 0 && $wgSelectCategoryRoot[$namespace] ) { |
| 191 | + if( $namespace >= 0 && array_key_exists( $namespace, $wgSelectCategoryRoot ) && $wgSelectCategoryRoot[$namespace] ) { |
192 | 192 | # Include root and step into the recursion |
193 | 193 | $allCats = array_merge( array( $wgSelectCategoryRoot[$namespace] => 0 ), |
194 | 194 | self::getChildren( $wgSelectCategoryRoot[$namespace] ) ); |