Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-29984 fix undefined $today when no course start date

  • Loading branch information...
commit 8c41a90a9ce5187f04f05002dc4a2759e50c3852 1 parent 9de8774
@skodak skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/manual/lib.php
View
4 enrol/manual/lib.php
@@ -209,10 +209,10 @@ public function get_manual_enrol_button(course_enrolment_manager $manager) {
$startdateoptions = array();
$timeformat = get_string('strftimedatefullshort');
if ($startdate > 0) {
- $today = time();
- $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
$startdateoptions[2] = get_string('coursestart') . ' (' . userdate($startdate, $timeformat) . ')';
}
+ $today = time();
+ $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
$startdateoptions[3] = get_string('today') . ' (' . userdate($today, $timeformat) . ')' ;
$modules = array('moodle-enrol_manual-quickenrolment', 'moodle-enrol_manual-quickenrolment-skin');
Please sign in to comment.
Something went wrong with that request. Please try again.