From: Mr. E23 Date: Fri, 6 Feb 2004 14:46:01 +0000 (+0000) Subject: Fix for problem diffing with current revision X-Git-Tag: 1.3.0beta1~1017 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=9889d0f0f0a1ec7a2757ac27a2df08e252432809;p=lhc%2Fweb%2Fwiklou.git Fix for problem diffing with current revision --- 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; }