Index: branches/wmf/1.16wmf4/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -677,9 +677,9 @@ |
678 | 678 | $attr = array( 'class' => 'CategoryTreeBullet' ); |
679 | 679 | |
680 | 680 | # Get counts, with conversion to integer so === works |
681 | | - $pageCount = intval( $cat->getPageCount() ); |
682 | | - $subcatCount = intval( $cat->getSubcatCount() ); |
683 | | - $fileCount = intval( $cat->getFileCount() ); |
| 681 | + $pageCount = $cat ? intval( $cat->getPageCount() ) : 0; |
| 682 | + $subcatCount = $cat ? intval( $cat->getSubcatCount() ) : 0; |
| 683 | + $fileCount = $cat ? intval( $cat->getFileCount() ) : 0; |
684 | 684 | |
685 | 685 | if ( $ns == NS_CATEGORY ) { |
686 | 686 | |