Skip to content

Commit

Permalink
Mantis 0038043: ilDatePresentation::formatDate may return null instea…
Browse files Browse the repository at this point in the history
…d of string
  • Loading branch information
mbecker-databay committed Oct 4, 2023
1 parent 62073fe commit 4d21339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Calendar/classes/class.ilDatePresentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function formatDate(ilDateTime $date, bool $a_skip_day = false, bo
$date_info = $date->get(IL_CAL_FKT_GETDATE, '', 'UTC');
}

$date_str = null;
$date_str = '';
if (!$a_skip_day) {
$sep = ", ";
if (self::isToday($date) and self::useRelativeDates()) {
Expand Down

0 comments on commit 4d21339

Please sign in to comment.