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:32 +00:00
parent 94f0a2df9c
commit c7ec0a09a0

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)
{