From 826197e0668f9cb6b0a4c9e22d11cc230c388905 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 21:47:48 +0000 Subject: [PATCH] Only show the diff to PREV under the right circumstances --- browse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browse.php b/browse.php index 8feb418..82aac54 100644 --- a/browse.php +++ b/browse.php @@ -42,7 +42,7 @@ if ($show['head']) $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revnum)); } -$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->revnum)); +$show['prev'] = (($prev = $controller->cachev->fetch_prev_revision($controller->revnum)) != -1); if ($show['prev']) { $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revnum, $prev['revision'])); -- 2.22.5