- 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:
Nathan Gray 2015-03-23 20:00:10 +00:00
parent 8989730c56
commit 579b202001
2 changed files with 5 additions and 8 deletions

View File

@ -1834,7 +1834,7 @@ class calendar_bo
* @param type $event * @param type $event
* @return array array of selected calendar fields * @return array array of selected calendar fields
*/ */
function get_link_options ($event) function get_link_options ($event = array())
{ {
$options = array ( $options = array (
'end' => lang('End date'), 'end' => lang('End date'),

View File

@ -1775,13 +1775,10 @@ class calendar_boupdate extends calendar_bo
); );
// Repeated Events // Repeated Events
if($event['recur_type'] != MCAL_RECUR_NONE)
{
$var['recur_type'] = Array( $var['recur_type'] = Array(
'field' => lang('Repetition'), 'field' => lang('Repetition'),
'data' => $this->recure2string($event), 'data' => ($event['recur_type'] != MCAL_RECUR_NONE) ? $this->recure2string($event) : '',
); );
}
return $var; return $var;
} }