|
@@ 218-222 (lines=5) @@
|
| 215 |
|
public function calendar_replacements($id,$prefix = '', &$content = '') |
| 216 |
|
{ |
| 217 |
|
$replacements = array(); |
| 218 |
|
if(!is_array($id) || !$id['start']) { |
| 219 |
|
$event = $this->bo->read(is_array($id) ? $id['id'] : $id, is_array($id) ? $id['recur_date'] : null); |
| 220 |
|
} else { |
| 221 |
|
$event = $id; |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
$record = new calendar_egw_record($event['id']); |
| 225 |
|
|
|
@@ 506-510 (lines=5) @@
|
| 503 |
|
{ |
| 504 |
|
unset($plugin); // not used, but required by function signature |
| 505 |
|
|
| 506 |
|
if(!is_array($id) || !$id['start']) { |
| 507 |
|
$event = $this->bo->read(is_array($id) ? $id['id'] : $id, is_array($id) ? $id['recur_date'] : null); |
| 508 |
|
} else { |
| 509 |
|
$event = $id; |
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
if(!is_array($event['participants']) || $n >= count($event['participants'])) return array(); |
| 513 |
|
|