Skip to content

Commit bca8ca1

Browse files
committed
Fixed enrol start date not showing date (#410)
1 parent c0d6b21 commit bca8ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

element/date/classes/element.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ public function render($pdf, $preview, $user) {
187187
if ($timestart = $DB->get_record_sql($sql, ['userid' => $issue->userid, 'courseid' => $courseid])) {
188188
if (!empty($timestart->timestart)) {
189189
$date = $timestart->timestart;
190+
} else {
191+
$date = $timestart->timecreated;
190192
}
191193
}
192194
} else if ($dateitem == CUSTOMCERT_DATE_ENROLMENT_END) {

0 commit comments

Comments
 (0)