From: Alexandre Emsenhuber Date: Sat, 7 Jan 2012 16:58:56 +0000 (+0000) Subject: Simplify the check to make it more understandable X-Git-Tag: 1.31.0-rc.0~25448 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=a02ee030e786832326c0c1f58171934eb5935a95;p=lhc%2Fweb%2Fwiklou.git Simplify the check to make it more understandable --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 262235feb3..71a439bfc8 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1040,7 +1040,7 @@ class WikiPage extends Page { // Delete if changing from redirect to non-redirect $isRedirect = !is_null( $redirectTitle ); - if ( !$isRedirect && !is_null( $lastRevIsRedirect ) && $lastRevIsRedirect === $isRedirect ) { + if ( !$isRedirect && $lastRevIsRedirect === false ) { return true; }