From 8bc72b70dfd34d11f230b98c0fd8ad681772c98a Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 22 Jul 2014 20:19:41 +0100 Subject: [PATCH] Collapse nested if statements Change-Id: I1cecfe5884edb98c8ad0a441f4d82288d597f631 --- includes/OutputPage.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6bea9312d3..9685747541 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1291,10 +1291,8 @@ class OutputPage extends ContextSource { continue; } $wgContLang->findVariantLink( $category, $title, true ); - if ( $category != $origcategory ) { - if ( array_key_exists( $category, $categories ) ) { - continue; - } + if ( $category != $origcategory && array_key_exists( $category, $categories ) ) { + continue; } $text = $wgContLang->convertHtml( $title->getText() ); $this->mCategories[] = $title->getText(); -- 2.20.1