| @@ 1330-1343 (lines=14) @@ | ||
| 1327 | // we dont need and dont want that special treatment anymore, as it keeps client from changing resources |
|
| 1328 | elseif ($this->productManufacturer != 'groupdav') |
|
| 1329 | { |
|
| 1330 | foreach ($event_info['stored_event']['participants'] as $uid => $status) |
|
| 1331 | { |
|
| 1332 | // Is it a resource and no longer present in the event? |
|
| 1333 | if ($uid[0] == 'r' && !isset($event['participants'][$uid])) |
|
| 1334 | { |
|
| 1335 | if ($this->log) |
|
| 1336 | { |
|
| 1337 | error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 1338 | "() Restore resource $uid to status $status\n",3,$this->logfile); |
|
| 1339 | } |
|
| 1340 | // Add it back in |
|
| 1341 | $event['participants'][$uid] = $status; |
|
| 1342 | } |
|
| 1343 | } |
|
| 1344 | } |
|
| 1345 | ||
| 1346 | /* Modifying an existing event with timezone different from default timezone of user |
|
| @@ 2554-2571 (lines=18) @@ | ||
| 2551 | // check participants |
|
| 2552 | if (is_array($event['participants'])) |
|
| 2553 | { |
|
| 2554 | foreach ($event['participants'] as $attendee => $status) |
|
| 2555 | { |
|
| 2556 | if (!isset($egwEvent['participants'][$attendee]) && |
|
| 2557 | $attendee != $egwEvent['owner']) // || |
|
| 2558 | //(!$relax && $egw_event['participants'][$attendee] != $status)) |
|
| 2559 | { |
|
| 2560 | if ($this->log) |
|
| 2561 | { |
|
| 2562 | error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 2563 | "() additional event['participants']: $attendee\n",3,$this->logfile); |
|
| 2564 | } |
|
| 2565 | continue 2; |
|
| 2566 | } |
|
| 2567 | else |
|
| 2568 | { |
|
| 2569 | unset($egwEvent['participants'][$attendee]); |
|
| 2570 | } |
|
| 2571 | } |
|
| 2572 | // ORGANIZER and Groups may be missing |
|
| 2573 | unset($egwEvent['participants'][$egwEvent['owner']]); |
|
| 2574 | foreach ($egwEvent['participants'] as $attendee => $status) |
|