diff --git a/enrol/locallib.php b/enrol/locallib.php index 1c71e657ad9..30c9db8d1d7 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -863,7 +863,8 @@ class course_enrolment_manager { $period = get_string('periodend', 'enrol', userdate($ue->timeend)); $periodoutside = ($ue->timeend && $now > $ue->timeend); } else { - $period = ''; + // If there is no start or end show when user was enrolled. + $period = get_string('periodnone', 'enrol', userdate($ue->timecreated)); $periodoutside = false; } $details['enrolments'][$ue->id] = array( diff --git a/lang/en/enrol.php b/lang/en/enrol.php index f4709453e63..e0ac6908770 100644 --- a/lang/en/enrol.php +++ b/lang/en/enrol.php @@ -80,6 +80,7 @@ $string['participationactive'] = 'Active'; $string['participationstatus'] = 'Status'; $string['participationsuspended'] = 'Suspended'; $string['periodend'] = 'until {$a}'; +$string['periodnone'] = 'enrolled {$a}'; $string['periodstart'] = 'from {$a}'; $string['periodstartend'] = 'from {$a->start} until {$a->end}'; $string['recovergrades'] = 'Recover user\'s old grades if possible';