mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts
This commit is contained in:
parent
e87f4c1514
commit
eeb292ecbd
@ -465,8 +465,8 @@ class calendar_ical extends calendar_boupdate
|
||||
case 'g':
|
||||
$cutype = 'GROUP';
|
||||
$participantURL = 'urn:uuid:'.common::generate_uid('accounts', $uid);
|
||||
$members = $GLOBALS['egw']->accounts->members($uid, true);
|
||||
if (!isset($event['participants'][$this->user]) && in_array($this->user, $members))
|
||||
if (!isset($event['participants'][$this->user]) &&
|
||||
($members = $GLOBALS['egw']->accounts->members($uid, true)) && in_array($this->user, $members))
|
||||
{
|
||||
$user = $this->resource_info($this->user);
|
||||
$attributes['ATTENDEE'][] = 'MAILTO:' . $user['email'];
|
||||
@ -2822,8 +2822,8 @@ class calendar_ical extends calendar_boupdate
|
||||
$status != 'X' && $status != 'U')
|
||||
{
|
||||
// User tries to reply to the group invitiation
|
||||
$members = $GLOBALS['egw']->accounts->members($uid, true);
|
||||
if (in_array($this->user, $members))
|
||||
if (($members = $GLOBALS['egw']->accounts->members($uid, true)) &&
|
||||
in_array($this->user, $members))
|
||||
{
|
||||
//Horde::logMessage("vevent2egw: set status to " . $status,
|
||||
// __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||
|
Loading…
Reference in New Issue
Block a user