From: Jan Schneider Date: Tue, 24 Aug 2010 14:02:30 +0000 (+0200) Subject: Only link to cvsgraph.php if we actually have a CVS repo. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=773fa88e65f762656a88c30d8f82785c977004f8;p=horde.git Only link to cvsgraph.php if we actually have a CVS repo. --- 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"));