Fix bug caused by variable reuse from r71902
authorMax Semenik <maxsem@users.mediawiki.org>
Tue, 2 Nov 2010 15:52:10 +0000 (15:52 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Tue, 2 Nov 2010 15:52:10 +0000 (15:52 +0000)
includes/CategoryPage.php

index 8213e6e..42e6ff4 100644 (file)
@@ -587,8 +587,8 @@ class CategoryViewer {
 
                # Check if there's a "from" or "until" for anything
                $fromOrUntil = false;
-               foreach ( array( 'page', 'subcat', 'file' ) as $type ) {
-                       if ( $this->from[$type] !== null || $this->until[$type] !== null ) {
+               foreach ( array( 'page', 'subcat', 'file' ) as $t ) {
+                       if ( $this->from[$t] !== null || $this->until[$t] !== null ) {
                                $fromOrUntil = true;
                                break;
                        }