mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts
This commit is contained in:
parent
0c5ca986c6
commit
cff9872f17
@ -1145,7 +1145,7 @@ class calendar_bo
|
||||
{
|
||||
foreach($event['participants'] as $uid => $accept)
|
||||
{
|
||||
if ($uid == $user || $uid < 0 && in_array($user,$GLOBALS['egw']->accounts->members($uid,true)))
|
||||
if ($uid == $user || $uid < 0 && in_array($user, (array)$GLOBALS['egw']->accounts->members($uid,true)))
|
||||
{
|
||||
// if we are a participant, we have an implicite FREEBUSY, READ and PRIVAT grant
|
||||
$grant |= EGW_ACL_FREEBUSY | EGW_ACL_READ | EGW_ACL_PRIVATE;
|
||||
|
@ -241,7 +241,7 @@ class calendar_boupdate extends calendar_bo
|
||||
|
||||
if ($uid < 0) // group, check it's members too
|
||||
{
|
||||
$users += $GLOBALS['egw']->accounts->members($uid,true);
|
||||
$users += (array)$GLOBALS['egw']->accounts->members($uid,true);
|
||||
$users = array_unique($users);
|
||||
}
|
||||
$users[] = $uid;
|
||||
|
Loading…
Reference in New Issue
Block a user