From b6dd68fcc21fdeb80f04ff03cc3d50ceb33ef8f8 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Tue, 2 Nov 2010 15:52:10 +0000 Subject: [PATCH] Fix bug caused by variable reuse from r71902 --- includes/CategoryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 8213e6e3a6..42e6ff4c74 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -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; } -- 2.20.1