From: Jan Schneider Date: Wed, 15 Dec 2010 22:45:48 +0000 (+0000) Subject: Don't show DataTree sidebar entry if DataTree is disabled. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=efaecdc14a72f816c14553c608c0afd3e49a2c67;p=horde.git Don't show DataTree sidebar entry if DataTree is disabled. --- diff --git a/horde/lib/Api.php b/horde/lib/Api.php index 9aad2f197..eacd34c95 100644 --- a/horde/lib/Api.php +++ b/horde/lib/Api.php @@ -82,6 +82,11 @@ class Horde_Api extends Horde_Registry_Api ); } + if (empty($GLOBALS['conf']['datatree']['driver']) || + $GLOBALS['conf']['datatree']['driver'] == 'null') { + unset($admin['datatree']); + } + return $admin; }