From: Brion Vibber Date: Mon, 25 Apr 2005 09:32:06 +0000 (+0000) Subject: php's on crack. X-Git-Tag: 1.5.0alpha1~145 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=60610e24efff81cdd510b27b5e97c04b993ea323;p=lhc%2Fweb%2Fwiklou.git php's on crack. --- 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 );