From: Max Semenik Date: Tue, 2 Nov 2010 15:52:10 +0000 (+0000) Subject: Fix bug caused by variable reuse from r71902 X-Git-Tag: 1.31.0-rc.0~34129 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=b6dd68fcc21fdeb80f04ff03cc3d50ceb33ef8f8;p=lhc%2Fweb%2Fwiklou.git Fix bug caused by variable reuse from r71902 --- 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; }