fixing a calendar warning

This commit is contained in:
toyomoyo 2007-09-20 03:04:53 +00:00
parent edeed697de
commit 68ad444b15

View File

@ -526,7 +526,13 @@ function calendar_print_event($event) {
$eventclass = ' '.$event->class;
}
echo '<td class="description '.$event->cssclass.$eventclass.'">';
if (isset($event->cssclass)) {
$eclass = $event->cssclass.$eventclass;
} else {
$eclass = $eventclass;
}
echo '<td class="description '.$eclass.'">';
echo format_text($event->description, FORMAT_HTML);
if (calendar_edit_event_allowed($event)) {
echo '<div class="commands">';