Swap and for &&
[lhc/web/wiklou.git] / includes / Title.php
index c570633..0efc94e 100644 (file)
@@ -3647,7 +3647,7 @@ class Title {
                        if ( $right == 'autoconfirmed' ) {
                                $right = 'editsemiprotected'; // B/C
                        }
-                       if ( $tp and !$wgUser->isAllowed( $right ) ) {
+                       if ( $tp && !$wgUser->isAllowed( $right ) ) {
                                $errors[] = array( 'cantmove-titleprotected' );
                        }
                }