From 9889d0f0f0a1ec7a2757ac27a2df08e252432809 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Fri, 6 Feb 2004 14:46:01 +0000 Subject: [PATCH] Fix for problem diffing with current revision --- includes/PageHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 58a4a21d3c..52bf8f8ea8 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -118,7 +118,7 @@ class PageHistory { return false; } function dodiff(v1, v2){ - if(v2 > v1){ tmp = v1; v1 = v2; v2 = tmp; } + if(v2 > v1 && v1 != 0){ tmp = v1; v1 = v2; v2 = tmp; } u = \"{$url}&diff=\" + v1 + \"&oldid=\" + v2; location.href=u; } -- 2.20.1