Skip to content

Commit

Permalink
Fix "Don't use function return in write context" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 18, 2015
1 parent 67d623f commit 2d9b602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kronolith/lib/View/Sidebar.php
Expand Up @@ -62,7 +62,8 @@ public function __construct($config = array())
$sidebar->resourceAdmin = $registry->isAdmin() || $GLOBALS['injector']->getInstance('Horde_Core_Perms')->hasAppPermission('resource_management');
$sidebar->resources = $GLOBALS['conf']['resources']['enabled'];
$sidebar->addRemote = !$prefs->isLocked('remote_cals');
$sidebar->showRemote = !($prefs->isLocked('remote_cals') && empty(unserialize($prefs->getValue('remote_cals'))));
$remotes = unserialize($prefs->getValue('remote_cals'));
$sidebar->showRemote = !($prefs->isLocked('remote_cals') && empty($remotes));
$this->content = $sidebar->render('dynamic/sidebar');
}
}

0 comments on commit 2d9b602

Please sign in to comment.