From 7c066a76e23ce9f3088d788350f81cb620f85b54 Mon Sep 17 00:00:00 2001 From: shrykedude Date: Sun, 23 Nov 2003 19:45:50 +0000 Subject: [PATCH] Corrected display of next business day on small view --- calendar/inc/hook_home_small.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/calendar/inc/hook_home_small.inc.php b/calendar/inc/hook_home_small.inc.php index a0448ced1b..b9b5bafdc1 100755 --- a/calendar/inc/hook_home_small.inc.php +++ b/calendar/inc/hook_home_small.inc.php @@ -24,12 +24,17 @@ $today = $GLOBALS['phpgw']->datetime->users_localtime; $dates = array($today); - if(date('w',$today)=='5') // if it's Friday, show the weekend, plus Monday + $wday = date('w',$today); + if($wday=='5') // if it's Friday, show the weekend, plus Monday { $dates[] = $today + 86400; // Saturday $dates[] = $today + (2*86400); // Sunday } - $dates[] = $dates[count($dates)-1] + 86400; + if($wday=='6') // if it's Saturday, show Sunday, plus Monday + { + $dates[] = $today + 86400; // Sunday + } + $dates[] = $dates[count($dates)-1] + 86400; // the next business day $extra_data = $GLOBALS['css']."\n" . ''