Skip to content

Commit c9e2ef5

Browse files
committed
Minor - Incorrect time in Thematic Advance #3008
Format change
1 parent dc9aa48 commit c9e2ef5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

main/inc/introductionSection.inc.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,14 @@
211211
$thematicScore = $thematic->get_total_average_of_thematic_advances().'%';
212212
$thematicUrl = api_get_path(WEB_CODE_PATH).'course_progress/index.php?action=thematic_details&'.api_get_cidreq();
213213

214-
$thematic_advance_info['thematic_id'] = isset($thematic_advance_info['thematic_id'])?$thematic_advance_info['thematic_id']:0;
215-
$thematic_advance_info['start_date'] = isset( $thematic_advance_info['start_date'])? $thematic_advance_info['start_date'] : null;
216-
$thematic_advance_info['content'] = isset($thematic_advance_info['content'])?$thematic_advance_info['content']:'';
217-
$thematic_advance_info['duration'] = isset($thematic_advance_info['duration'])?$thematic_advance_info['duration']:0;
214+
$thematic_advance_info['thematic_id'] = isset($thematic_advance_info['thematic_id']) ? $thematic_advance_info['thematic_id'] : 0;
215+
$thematic_advance_info['start_date'] = isset($thematic_advance_info['start_date']) ? $thematic_advance_info['start_date'] : null;
216+
$thematic_advance_info['content'] = isset($thematic_advance_info['content']) ? $thematic_advance_info['content'] : '';
217+
$thematic_advance_info['duration'] = isset($thematic_advance_info['duration']) ? $thematic_advance_info['duration'] : 0;
218218

219219
$thematic_info = $thematic->get_thematic_list($thematic_advance_info['thematic_id']);
220-
$thematic_info['title'] = isset($thematic_info['title'])?$thematic_info['title']:'';
220+
$thematic_info['title'] = isset($thematic_info['title']) ? $thematic_info['title'] : '';
221+
221222
/*
222223
$thematic_advance_info['start_date'] = api_get_local_time(
223224
$thematic_advance_info['start_date']

0 commit comments

Comments
 (0)