Update index.php
i have add an icalcolor test for icalevent too and made some reindentation
This commit is contained in:
parent
dc0af179e9
commit
efb1e91a23
@ -1221,7 +1221,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
|
|||||||
}
|
}
|
||||||
$numicals[dol_string_nospecial($event->icalname)]++;
|
$numicals[dol_string_nospecial($event->icalname)]++;
|
||||||
}
|
}
|
||||||
$color=$event->icalcolor;
|
$color=($event->icalcolor?$event->icalcolor:-1);
|
||||||
$cssclass=(! empty($event->icalname)?'family_ext'.md5($event->icalname):'family_other');
|
$cssclass=(! empty($event->icalname)?'family_ext'.md5($event->icalname):'family_other');
|
||||||
}
|
}
|
||||||
else if ($event->type_code == 'BIRTHDAY')
|
else if ($event->type_code == 'BIRTHDAY')
|
||||||
@ -1231,10 +1231,9 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$numother++;
|
$numother++;
|
||||||
$color=$event->icalcolor;
|
$color=($event->icalcolor?$event->icalcolor:-1);
|
||||||
$cssclass=(! empty($event->icalname)?'family_ext'.md5($event->icalname):'family_other');
|
$cssclass=(! empty($event->icalname)?'family_ext'.md5($event->icalname):'family_other');
|
||||||
|
|
||||||
|
|
||||||
if (empty($cacheusers[$event->userownerid]))
|
if (empty($cacheusers[$event->userownerid]))
|
||||||
{
|
{
|
||||||
$newuser=new User($db);
|
$newuser=new User($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user