From: Reedy Date: Tue, 22 Jul 2014 19:19:41 +0000 (+0100) Subject: Collapse nested if statements X-Git-Tag: 1.31.0-rc.0~14722 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/File:%2A_image6?a=commitdiff_plain;h=8bc72b70dfd34d11f230b98c0fd8ad681772c98a;p=lhc%2Fweb%2Fwiklou.git Collapse nested if statements Change-Id: I1cecfe5884edb98c8ad0a441f4d82288d597f631 --- 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();