From c9e2ef50fbbda4a71fa47d89001073266e552a0f Mon Sep 17 00:00:00 2001 From: carlos alvarado Date: Thu, 23 Jul 2020 16:48:46 -0500 Subject: [PATCH] Minor - Incorrect time in Thematic Advance #3008 Format change --- main/inc/introductionSection.inc.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index b033f7f85b..7e46bdaa0f 100755 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -211,13 +211,14 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) { $thematicScore = $thematic->get_total_average_of_thematic_advances().'%'; $thematicUrl = api_get_path(WEB_CODE_PATH).'course_progress/index.php?action=thematic_details&'.api_get_cidreq(); - $thematic_advance_info['thematic_id'] = isset($thematic_advance_info['thematic_id'])?$thematic_advance_info['thematic_id']:0; - $thematic_advance_info['start_date'] = isset( $thematic_advance_info['start_date'])? $thematic_advance_info['start_date'] : null; - $thematic_advance_info['content'] = isset($thematic_advance_info['content'])?$thematic_advance_info['content']:''; - $thematic_advance_info['duration'] = isset($thematic_advance_info['duration'])?$thematic_advance_info['duration']:0; + $thematic_advance_info['thematic_id'] = isset($thematic_advance_info['thematic_id']) ? $thematic_advance_info['thematic_id'] : 0; + $thematic_advance_info['start_date'] = isset($thematic_advance_info['start_date']) ? $thematic_advance_info['start_date'] : null; + $thematic_advance_info['content'] = isset($thematic_advance_info['content']) ? $thematic_advance_info['content'] : ''; + $thematic_advance_info['duration'] = isset($thematic_advance_info['duration']) ? $thematic_advance_info['duration'] : 0; $thematic_info = $thematic->get_thematic_list($thematic_advance_info['thematic_id']); - $thematic_info['title'] = isset($thematic_info['title'])?$thematic_info['title']:''; + $thematic_info['title'] = isset($thematic_info['title']) ? $thematic_info['title'] : ''; + /* $thematic_advance_info['start_date'] = api_get_local_time( $thematic_advance_info['start_date']