From 54041c77c7e08db6205a57148735b3266b711756 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 29 Mar 2008 14:14:38 +0100
Subject: [PATCH] fix multidiff when one revision is current FS#1355

darcs-hash:20080329131438-7ad00-d3ab26eef403b1008a0d24c719f533e81f8ee6b5.gz
---
 inc/html.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/inc/html.php b/inc/html.php
index 5811fd141..9ba00b58d 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -785,6 +785,11 @@ function html_diff($text='',$intro=true){
   if(is_array($_REQUEST['rev2'])){
     $rev1 = (int) $_REQUEST['rev2'][0];
     $rev2 = (int) $_REQUEST['rev2'][1];
+
+    if(!$rev1){
+        $rev1 = $rev2;
+        unset($rev2);
+    }
   }else{
     $rev2 = (int) $_REQUEST['rev2'];
   }
@@ -801,7 +806,7 @@ function html_diff($text='',$intro=true){
     $r_head  = $lang['yours'];
   }else{
     if($rev1 && $rev2){            // two specific revisions wanted
-      // make sure order is correct (older on the right)
+      // make sure order is correct (older on the left)
       if($rev1 < $rev2){
         $l_rev = $rev1;
         $r_rev = $rev2;
-- 
GitLab