From: Aryeh Gregor Date: Fri, 6 Jul 2007 07:11:58 +0000 (+0000) Subject: Use spiffier variable swap method. Might not be as pretty as those iterators Tim... X-Git-Tag: 1.31.0-rc.0~52254 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=1ff9b56b9731834c7a1588e0df1e9df6444e3c19;p=lhc%2Fweb%2Fwiklou.git Use spiffier variable swap method. Might not be as pretty as those iterators Tim was rhapsodizing about earlier today, though. --- 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 ) {