From f108747595fe10d5846905dd98c690a92819ae8e Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Tue, 16 Jun 2015 09:28:11 -0400 Subject: [PATCH] Fix detecting ability to add shares. At this point, the cfgSources array has already been munged with the actual shares in place of the localsql placeholder. --- turba/lib/Application.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/turba/lib/Application.php b/turba/lib/Application.php index e2b509945bf..a19110412d1 100644 --- a/turba/lib/Application.php +++ b/turba/lib/Application.php @@ -234,8 +234,7 @@ public function sidebar($sidebar) ); if ($GLOBALS['registry']->getAuth() && $GLOBALS['session']->get('turba', 'has_share') && - !empty($conf['shares']['source']) && - !empty($cfgSources[$conf['shares']['source']])) { + !empty($conf['shares']['source'])) { $sidebar->containers['my']['header']['add'] = array( 'url' => Horde::url('addressbooks/create.php'), 'label' => _("Create a new Address Book"),