From 773fa88e65f762656a88c30d8f82785c977004f8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 24 Aug 2010 16:02:30 +0200 Subject: [PATCH] Only link to cvsgraph.php if we actually have a CVS repo. --- chora/lib/Chora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chora/lib/Chora.php b/chora/lib/Chora.php index a05a63914..f9016a216 100644 --- a/chora/lib/Chora.php +++ b/chora/lib/Chora.php @@ -325,7 +325,8 @@ class Chora } if ($GLOBALS['VC']->hasFeature('branches')) { - if (empty($GLOBALS['conf']['paths']['cvsgraph'])) { + if (empty($GLOBALS['conf']['paths']['cvsgraph']) || + !($GLOBALS['VC'] instanceof Horde_Vcs_Cvs)) { $views[] = ($current == 'history') ? '' . _("Branches") . '' : Horde::widget(self::url('history', $where), _("Branches"), 'widget', '', '', _("_Branches")); -- 2.11.0