diff --git a/calendar/preferences.php b/calendar/preferences.php index 2db50ede5a..5def340caa 100644 --- a/calendar/preferences.php +++ b/calendar/preferences.php @@ -31,7 +31,7 @@ $phpgw->preferences->add('calendar','workdayends'); $phpgw->preferences->add('calendar','defaultcalendar'); $phpgw->preferences->add('calendar','defaultfilter'); - if ($mainscreen_showevents) + if ($mainscreen_showevents == True) { $phpgw->preferences->add('calendar','mainscreen_showevents'); } @@ -39,7 +39,7 @@ { $phpgw->preferences->delete('calendar','mainscreen_showevents'); } - if ($send_updates) + if ($send_updates == True) { $phpgw->preferences->add('calendar','send_updates'); } @@ -48,6 +48,15 @@ $phpgw->preferences->delete('calendar','send_updates'); } + if ($display_status == True) + { + $phpgw->preferences->add('calendar','display_status'); + } + else + { + $phpgw->preferences->delete('calendar','display_status'); + } + $phpgw->preferences->save_repository(True); Header('Location: '.$phpgw->link('/preferences/index.php')); @@ -95,7 +104,7 @@ // echo '

' . $phpgw->common->error_list($errors) . '
'; // } - $str = ''; + $str = ''; display_item(lang('show day view on main screen'),$str); $t_weekday[$phpgw_info['user']['preferences']['calendar']['weekdaystarts']] = ' selected'; @@ -148,17 +157,19 @@ $str = ''; display_item(lang('default calendar filter'),$str); - $str = ''; + $str = ''; display_item(lang('send updates via email'),$str); + $str = ''; + display_item(lang('display status of events'),$str); $p->pparse('out','pref'); $phpgw->common->phpgw_footer();