Clearing up this working copy. Adding a couple of braces
authorSam Reed <reedy@users.mediawiki.org>
Tue, 16 Nov 2010 23:02:08 +0000 (23:02 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 16 Nov 2010 23:02:08 +0000 (23:02 +0000)
includes/User.php

index fe95fb1..dbe6b17 100644 (file)
@@ -2191,8 +2191,9 @@ class User {
         * @return Boolean: True if action is allowed, else false
         */
        function isAllowed( $action = '' ) {
-               if ( $action === '' )
+               if ( $action === '' ) {
                        return true; // In the spirit of DWIM
+               }
                # Patrolling may not be enabled
                if( $action === 'patrol' || $action === 'autopatrol' ) {
                        global $wgUseRCPatrol, $wgUseNPPatrol;