From 60610e24efff81cdd510b27b5e97c04b993ea323 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 25 Apr 2005 09:32:06 +0000 Subject: [PATCH] php's on crack. --- includes/SpecialMovepage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 68b8a115b8..7a86dbef49 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -82,7 +82,10 @@ class MovePageForm { # If a title was supplied, probably from the move log revert # link, check for validity. We can then show some diagnostic # information and save a click. - $err = $ot->isValidMoveOperation( $nt ); + $newerr = $ot->isValidMoveOperation( $nt ); + if( is_string( $newerr ) ) { + $err = $newerr; + } } } $encNewTitle = htmlspecialchars( $this->newTitle ); -- 2.20.1