diff --git a/app/views/course/dates/_date_row.php b/app/views/course/dates/_date_row.php
index 32433ae593c530ca4bea779874a2bdd074249100..9e92733de4fa893ae091966b621edf38f73e06f4 100644
--- a/app/views/course/dates/_date_row.php
+++ b/app/views/course/dates/_date_row.php
@@ -4,7 +4,7 @@ $dialog_url = $show_raumzeit
             ? $controller->url_for('course/dates/details/' . $date->id)
             : $controller->url_for('course/dates/singledate/' . $date->id);
 ?>
-<tr id="date_<?= $date->id ?>" <? if ($is_next_date) echo 'class="nextdate" title="' . _('Der nächste Termin') . '"'; ?> data-termin-id="<?= htmlReady($date->id) ?>">
+<tr id="date_<?= $date->id ?>" <? if (!empty($is_next_date)) echo 'class="nextdate" title="' . _('Der nächste Termin') . '"'; ?> data-termin-id="<?= htmlReady($date->id) ?>">
     <td data-sort-value="<?= htmlReady($date->date) ?>" class="date_name">
         <a href="<?= $dialog_url ?>" data-dialog>
             <?= Icon::create($icon)->asImg(['class' => 'text-bottom']) ?>