Skip to content

Commit

Permalink
Small fix in EventMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kozi committed Dec 17, 2014
1 parent 7f37a05 commit 6e47c73
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ContaoFullcalendar/EventMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ public static function convert(array $event, $color=null) {
$arrCSS[] = 'cat_'.standardize($event['fullcal_cat']);
}


if ($event['begin'] === $event['end']) {
// Ein Event mit Startzeit ohne Endzeit
$newEvent->start = \Date::parse('c', $event['begin']);
$arrCSS[] = 'oneDayTime';
}
elseif ($event['addTime'] === '') {
if ($event['addTime'] === '') {
// Ohne Zeitangaben
$newEvent->start = $dateBegin;
// Ein oder mehrere Tage?
Expand All @@ -69,6 +63,11 @@ public static function convert(array $event, $color=null) {
$arrCSS[] = 'oneDay';
}
}
elseif ($event['begin'] === $event['end']) {
// Ein Event mit Startzeit ohne Endzeit
$newEvent->start = \Date::parse('c', $event['begin']);
$arrCSS[] = 'oneDayTime';
}
elseif($timeBegin === $timeEnd) {
// Nur eine Startzeit
$newEvent->start = \Date::parse('c', $event['begin']);
Expand Down

0 comments on commit 6e47c73

Please sign in to comment.