From e428c46f94c654df033b303dc255557d2fe22c10 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 20:13:07 +0000 Subject: [PATCH] Fixed the diff to PREV link --- log.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log.php b/log.php index 2c1b01a..04371a4 100644 --- a/log.php +++ b/log.php @@ -40,6 +40,7 @@ $nodes = ''; foreach ($logs->fetch() AS $log) { $prev = $controller->cachev->fetch_prev_revision($log['rev']); + $prev = $prev['revision']; $link['view'] = $controller->href_compound(($isdir ? 'browse.php' : 'view.php'), null, Paths::fetch_rev_str(false, $log['rev'])); $link['blame'] = $controller->href_compound('blame.php', null, Paths::fetch_rev_str(false, $log['rev'])); @@ -50,7 +51,7 @@ foreach ($logs->fetch() AS $log) $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $log['rev'])); } - $show['diffprev'] = $prev != -1; + $show['diffprev'] = ($prev !== null); if ($show['diffprev']) { $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $log['rev'], $prev)); -- 2.43.5