From 89fbffadf2ce6ad8aec744f5159bd4f419407cb5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 8 Feb 2012 00:22:42 +0100 Subject: [PATCH] Fix: Bad style for events --- htdocs/comm/action/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 0788b3a0eec..9320ad50c2c 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -976,7 +976,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa if ($event->author->id == $user->id || $event->usertodo->id == $user->id || $event->userdone->id == $user->id) { $nummytasks++; $colorindex=1; $cssclass='family_mytasks'; } else if ($event->type_code == 'ICALEVENT') { $numical++; $numicals[dol_string_nospecial($event->icalname)]++; $color=$event->icalcolor; $cssclass=($event->icalname?'family_'.dol_string_nospecial($event->icalname):'family_other'); } else if ($event->type_code == 'BIRTHDAY') { $numbirthday++; $colorindex=2; $cssclass='family_birthday'; } - else { $numother++; $cssclass='family_other'; } + else { $numother++; $colorindex=2; $cssclass='family_other'; } if ($color == -1) $color=sprintf("%02x%02x%02x",$theme_datacolor[$colorindex][0],$theme_datacolor[$colorindex][1],$theme_datacolor[$colorindex][2]); $cssclass=$cssclass.' '.$cssclass.'_day_'.$ymd;