forked from extern/egroupware
need to check type, not account_id to detected "default" or "forced" prefs
This commit is contained in:
parent
349630ffa7
commit
448241f596
@ -1576,7 +1576,7 @@ END:VTIMEZONE
|
|||||||
function settings($hook_data)
|
function settings($hook_data)
|
||||||
{
|
{
|
||||||
$cals = array();
|
$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)
|
foreach (calendar_bo::list_calendars($hook_data['account_id']) as $entry)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user