From c4cb7a5f1ca3f511f260afd10f67834ef1073911 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Wed, 29 May 2019 11:03:23 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20bug=20na=20data=20ini?= =?UTF-8?q?cial=20do=20certificado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- type/ILB_Sem_tutoria_2014/certificate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type/ILB_Sem_tutoria_2014/certificate.php b/type/ILB_Sem_tutoria_2014/certificate.php index 332ed45..cebf47e 100644 --- a/type/ILB_Sem_tutoria_2014/certificate.php +++ b/type/ILB_Sem_tutoria_2014/certificate.php @@ -38,7 +38,7 @@ require_once("$CFG->dirroot/enrol/locallib.php"); $cc = new completion_completion(array('userid'=>$USER->id, 'course'=>$course->id)); $enrol_manager = new course_enrolment_manager($PAGE, $course); -$user_enrol = $enrol_manager->get_user_enrolments($USER->id); +$user_enrol = end($enrol_manager->get_user_enrolments($USER->id)); $start_date = $user_enrol->timestart; $end_date = $cc->timecompleted;