From b53017cac5602bebd76d7ad650a4311b8fea3489 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 May 2005 21:03:29 +0000 Subject: [PATCH] r153: Only show changes if there are changes to show in showhistory.php --- showhistory.php | 2 ++ templates/default/history_group.tpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/showhistory.php b/showhistory.php index b0d0806..00e11c2 100644 --- a/showhistory.php +++ b/showhistory.php @@ -50,9 +50,11 @@ foreach ($logs AS $dateline => $logitems) { $rowspan = 3; $changes = ''; + $show['changes'] = false; foreach ($logitems AS $log) { $rowspan++; + $show['changes'] = ((!empty($log['original']) AND !empty($log['changed'])) ? true : $show['changes']); eval('$changes .= "' . $template->fetch('history_bit') . '";'); } eval('$history .= "' . $template->fetch('history_group') . '";'); diff --git a/templates/default/history_group.tpl b/templates/default/history_group.tpl index 5322d90..638f79c 100644 --- a/templates/default/history_group.tpl +++ b/templates/default/history_group.tpl @@ -12,7 +12,7 @@
Bug #$log[bugid]
$log[formatted]
- $changes + $changesNo logged changes
-- 2.22.5