need to check type, not account_id to detected "default" or "forced" prefs

This commit is contained in:
Ralf Becker 2014-07-23 12:39:10 +00:00
parent 349630ffa7
commit 448241f596

View File

@ -1576,7 +1576,7 @@ END:VTIMEZONE
function settings($hook_data)
{
$cals = array();
if (!$hook_data['setup'] && is_numeric($hook_data['account_id']))
if (!$hook_data['setup'] && in_array($hook_data['type'], array('user', 'group')))
{
foreach (calendar_bo::list_calendars($hook_data['account_id']) as $entry)
{