mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
fix use of deprecated accounts::member and accounts::membership, should be members and memberships
This commit is contained in:
parent
7ada2354d3
commit
3971dd8915
@ -337,7 +337,7 @@ class calendar_bo
|
||||
foreach(array_keys($event['participants']) as $uid)
|
||||
{
|
||||
if (is_numeric($uid) && $GLOBALS['egw']->accounts->get_type($uid) == 'g' &&
|
||||
($members = $GLOBALS['egw']->accounts->member($uid)))
|
||||
($members = $GLOBALS['egw']->accounts->members($uid)))
|
||||
{
|
||||
foreach($members as $member)
|
||||
{
|
||||
@ -392,7 +392,7 @@ class calendar_bo
|
||||
{
|
||||
if ($no_enum_groups) continue;
|
||||
|
||||
$members = $GLOBALS['egw']->accounts->member($user);
|
||||
$members = $GLOBALS['egw']->accounts->members($user);
|
||||
if (is_array($members))
|
||||
{
|
||||
foreach($members as $member)
|
||||
@ -408,7 +408,7 @@ class calendar_bo
|
||||
}
|
||||
else // for users we have to include all the memberships, to get the group-events
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->membership($user);
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($user);
|
||||
if (is_array($memberships))
|
||||
{
|
||||
foreach($memberships as $group)
|
||||
@ -1693,7 +1693,7 @@ class calendar_bo
|
||||
{
|
||||
self::_list_cals_add($id,$users,$groups);
|
||||
}
|
||||
if (($memberships = $GLOBALS['egw']->accounts->membership($user)))
|
||||
if (($memberships = $GLOBALS['egw']->accounts->memberships($user)))
|
||||
{
|
||||
foreach($memberships as $group_info)
|
||||
{
|
||||
|
@ -759,7 +759,7 @@ class calendar_boupdate extends calendar_bo
|
||||
foreach($to_notify as $userid => $statusid)
|
||||
{
|
||||
if (is_numeric($userid) && $GLOBALS['egw']->accounts->get_type($userid) == 'g' &&
|
||||
($members = $GLOBALS['egw']->accounts->member($userid)))
|
||||
($members = $GLOBALS['egw']->accounts->members($userid)))
|
||||
{
|
||||
foreach($members as $member)
|
||||
{
|
||||
@ -2084,7 +2084,7 @@ class calendar_boupdate extends calendar_bo
|
||||
// for groups we have to include the members
|
||||
if ($GLOBALS['egw']->accounts->get_type($user) == 'g')
|
||||
{
|
||||
$members = $GLOBALS['egw']->accounts->member($user);
|
||||
$members = $GLOBALS['egw']->accounts->members($user);
|
||||
if (is_array($members))
|
||||
{
|
||||
foreach($members as $member)
|
||||
@ -2100,7 +2100,7 @@ class calendar_boupdate extends calendar_bo
|
||||
}
|
||||
else // for users we have to include all the memberships, to get the group-events
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->membership($user);
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($user);
|
||||
if (is_array($memberships))
|
||||
{
|
||||
foreach($memberships as $group)
|
||||
|
@ -186,7 +186,7 @@ class calendar_ui
|
||||
$owner = trim($owner);
|
||||
if (is_numeric($owner) && $GLOBALS['egw']->accounts->get_type($owner) == 'g')
|
||||
{
|
||||
foreach($GLOBALS['egw']->accounts->member($owner) as $member)
|
||||
foreach($GLOBALS['egw']->accounts->members($owner) as $member)
|
||||
{
|
||||
$member = $member['account_id'];
|
||||
if (!$this->bo->check_perms(EGW_ACL_READ|EGW_ACL_READ_FOR_PARTICIPANTS|EGW_ACL_FREEBUSY,0,$member))
|
||||
|
@ -583,7 +583,7 @@ class calendar_uiviews extends calendar_ui
|
||||
}
|
||||
}
|
||||
$content = array('view' => array());
|
||||
|
||||
|
||||
if ($weeks)
|
||||
{
|
||||
$this->first = $this->datetime->get_weekday_start($this->year,$this->month,$this->day);
|
||||
@ -612,7 +612,7 @@ class calendar_uiviews extends calendar_ui
|
||||
$search_params = $this->search_params;
|
||||
$search_params['start'] = $week_start->format('ts');
|
||||
$search_params['end'] = $week_end->format('ts');
|
||||
|
||||
|
||||
$content['view'][] = (array)$this->tagWholeDayOnTop($this->bo->search($search_params)) +
|
||||
array(
|
||||
'id' => $week_start->format('Ymd')
|
||||
@ -625,7 +625,7 @@ class calendar_uiviews extends calendar_ui
|
||||
|
||||
// Get the actions
|
||||
$home->setElementAttribute('view','actions',$this->get_actions());
|
||||
|
||||
|
||||
$home->exec(__METHOD__, $content);
|
||||
}
|
||||
|
||||
@ -2200,7 +2200,7 @@ class calendar_uiviews extends calendar_ui
|
||||
}
|
||||
elseif ($enum_groups && $GLOBALS['egw']->accounts->get_type($user) == 'g') // groups
|
||||
{
|
||||
foreach((array) $GLOBALS['egw']->accounts->member($user) as $data)
|
||||
foreach((array) $GLOBALS['egw']->accounts->members($user) as $data)
|
||||
{
|
||||
$user = $data['account_id'];
|
||||
if ($this->bo->check_perms(EGW_ACL_READ | EGW_ACL_FREEBUSY,0,$user))
|
||||
|
Loading…
Reference in New Issue
Block a user