Tweaked r48158 to show error in more cases
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 20 Mar 2009 02:58:18 +0000 (02:58 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 20 Mar 2009 02:58:18 +0000 (02:58 +0000)
includes/specials/SpecialMergeHistory.php

index 300157e..c51ce7c 100644 (file)
@@ -97,7 +97,7 @@ class MergehistoryForm {
                        );
                }
                
-               if ( empty($errors) && $this->mTargetObj->equals( $this->mDestObj ) ) {
+               if ( $this->mTargetObj && $this->mDestObj && $this->mTargetObj->equals( $this->mDestObj ) ) {
                        $errors[] = wfMsgExt( 'mergehistory-same-destination', array( 'parse' ) );
                }