From 1ff9b56b9731834c7a1588e0df1e9df6444e3c19 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 6 Jul 2007 07:11:58 +0000 Subject: [PATCH] Use spiffier variable swap method. Might not be as pretty as those iterators Tim was rhapsodizing about earlier today, though. --- includes/EditPage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index b5d967b3c0..b86768d212 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -100,9 +100,7 @@ class EditPage { if ($undo > 0 && $undoafter > 0 && $undo < $undoafter) { # If they got undoafter and undo round the wrong way, switch them - $temp = $undoafter; - $undoafter = $undo; - $undo = $temp; + list( $undo, $undoafter ) = array( $undoafter, $undo ); } if ( $undo > 0 && $undo > $undoafter ) { -- 2.20.1