Testing whether "!$this" is true makes absolutely no sense. Either we're in an objec...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 May 2008 16:23:23 +0000 (16:23 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 May 2008 16:23:23 +0000 (16:23 +0000)
includes/Title.php

index c7ea915..a4d7d68 100644 (file)
@@ -2394,7 +2394,7 @@ class Title {
         */
        public function isValidMoveOperation( &$nt, $auth = true ) {
                $errors = array();      
-               if( !$this or !$nt ) {
+               if( !$nt ) {
                        // Normally we'd add this to $errors, but we'll get
                        // lots of syntax errors if $nt is not an object
                        return array(array('badtitletext'));