From 8b5bc60235d04509350ace4faec9b6db0bb00957 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 7 Jan 2015 08:15:39 +0000 Subject: [PATCH] Consider only vaction by date, missing condition from commit #51139 --- mail/inc/class.mail_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index d8358565d5..4d1b0e4bef 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -4117,7 +4117,7 @@ class mail_ui $dtfrmt = $GLOBALS['egw_info']['user']['preferences']['common']['dateformat']; $refreshData['vacationnotice'] = lang('Vacation notice is active'); $refreshData['vacationrange'] = ($vacation['status']=='by_date'? common::show_date($vacation['start_date'],$dtfrmt,true).($vacation['end_date']>$vacation['start_date']?'->'.common::show_date($vacation['end_date']+ 24*3600-1,$dtfrmt,true):''):''); - if ($vacation['end_date']+ 24*3600 < time())$refreshData = ''; + if ($vacation['status'] == 'by_date' && $vacation['end_date']+ 24*3600 < time())$refreshData = ''; } } if ($vacation==false)