mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
- Fix $$Recurrence$$ notification placeholder to be empty (not missing) for non-recurring events
- Avoid warning in get_link_options by making unused parameter optional
This commit is contained in:
parent
577c4afaef
commit
e6f1f8f837
@ -1834,7 +1834,7 @@ class calendar_bo
|
||||
* @param type $event
|
||||
* @return array array of selected calendar fields
|
||||
*/
|
||||
function get_link_options ($event)
|
||||
function get_link_options ($event = array())
|
||||
{
|
||||
$options = array (
|
||||
'end' => lang('End date'),
|
||||
|
@ -1775,13 +1775,10 @@ class calendar_boupdate extends calendar_bo
|
||||
);
|
||||
|
||||
// Repeated Events
|
||||
if($event['recur_type'] != MCAL_RECUR_NONE)
|
||||
{
|
||||
$var['recur_type'] = Array(
|
||||
'field' => lang('Repetition'),
|
||||
'data' => $this->recure2string($event),
|
||||
);
|
||||
}
|
||||
$var['recur_type'] = Array(
|
||||
'field' => lang('Repetition'),
|
||||
'data' => ($event['recur_type'] != MCAL_RECUR_NONE) ? $this->recure2string($event) : '',
|
||||
);
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user