Skip to content

Commit

Permalink
Fix detecting ability to add shares.
Browse files Browse the repository at this point in the history
At this point, the cfgSources array has already been munged
with the actual shares in place of the localsql placeholder.
  • Loading branch information
mrubinsk committed Jun 16, 2015
1 parent 74356e3 commit f108747
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions turba/lib/Application.php
Expand Up @@ -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"),
Expand Down

0 comments on commit f108747

Please sign in to comment.