@@ -636,11 +636,11 @@ |
||
636 | 636 | } |
637 | 637 | $formToDisplay = $form->returnForm(); |
638 | 638 | } else { |
639 | - if (!empty($sessionId)) { |
|
640 | - $sessionInfo = api_get_session_info($sessionId); |
|
641 | - $startDate = $sessionInfo['access_start_date']; |
|
642 | - $endDate = $sessionInfo['access_end_date']; |
|
643 | - } |
|
639 | + if (!empty($sessionId)) { |
|
640 | + $sessionInfo = api_get_session_info($sessionId); |
|
641 | + $startDate = $sessionInfo['access_start_date']; |
|
642 | + $endDate = $sessionInfo['access_end_date']; |
|
643 | + } |
|
644 | 644 | } |
645 | 645 | |
646 | 646 | $attendance = new Attendance(); |
@@ -550,17 +550,17 @@ discard block |
||
550 | 550 | } |
551 | 551 | } |
552 | 552 | $max_cols_per_page = 12; //10 dates + 2 name and number |
553 | - $max_dates_per_page = $max_dates_per_page_original = $max_cols_per_page - 2;//10 |
|
553 | + $max_dates_per_page = $max_dates_per_page_original = $max_cols_per_page - 2; //10 |
|
554 | 554 | $rows = count($data_table); |
555 | 555 | |
556 | 556 | if ($cols > $max_cols_per_page) { |
557 | - $number_tables = round(($cols-2)/$max_dates_per_page); |
|
557 | + $number_tables = round(($cols - 2) / $max_dates_per_page); |
|
558 | 558 | $headers = $data_table[0]; |
559 | 559 | $all = array(); |
560 | 560 | $tables = array(); |
561 | 561 | $changed = 1; |
562 | 562 | |
563 | - for ($i= 0; $i <= $rows; $i++) { |
|
563 | + for ($i = 0; $i <= $rows; $i++) { |
|
564 | 564 | $row = isset($data_table[$i]) ? $data_table[$i] : null; |
565 | 565 | $key = 1; |
566 | 566 | $max_dates_per_page = 10; |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | foreach ($item as $value) { |
572 | 572 | if ($count_j >= $max_dates_per_page) { |
573 | 573 | $key++; |
574 | - $max_dates_per_page = $max_dates_per_page_original*$key; |
|
574 | + $max_dates_per_page = $max_dates_per_page_original * $key; |
|
575 | 575 | //magic hack |
576 | 576 | $tables[$key][$i][] = $tables[1][$i][0]; |
577 | 577 | $tables[$key][$i][] = $tables[1][$i][1]; |
@@ -628,8 +628,8 @@ discard block |
||
628 | 628 | $form = new FormValidator( |
629 | 629 | 'search', |
630 | 630 | 'post', |
631 | - api_get_self() . '?' . api_get_cidreq( |
|
632 | - ) . '&action=calendar_logins' |
|
631 | + api_get_self().'?'.api_get_cidreq( |
|
632 | + ).'&action=calendar_logins' |
|
633 | 633 | ); |
634 | 634 | $form->addDateRangePicker('range', get_lang('DateRange')); |
635 | 635 | $form->addButton('submit', get_lang('Submit')); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | // See AttendanceController::calendarLogins function |
5 | 5 | echo '<div class="actions">'; |
6 | 6 | echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_list">'. |
7 | - Display::return_icon('back.png',get_lang('AttendanceCalendar'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
7 | + Display::return_icon('back.png', get_lang('AttendanceCalendar'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
8 | 8 | echo '</div>'; |
9 | 9 | |
10 | 10 | echo $form; |
@@ -14,15 +14,15 @@ discard block |
||
14 | 14 | echo '<div class="actions">'; |
15 | 15 | if ($action == 'calendar_add') { |
16 | 16 | echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.'">'. |
17 | - Display::return_icon('back.png',get_lang('AttendanceCalendar'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
17 | + Display::return_icon('back.png', get_lang('AttendanceCalendar'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
18 | 18 | } else { |
19 | 19 | echo '<a href="index.php?'.api_get_cidreq().'&action=attendance_sheet_list&attendance_id='.$attendance_id.'">'. |
20 | - Display::return_icon('back.png',get_lang('AttendanceSheet'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
20 | + Display::return_icon('back.png', get_lang('AttendanceSheet'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
21 | 21 | if (api_is_allowed_to_edit()) { |
22 | 22 | echo '<a href="index.php?'.api_get_cidreq().'&action=calendar_add&attendance_id='.$attendance_id.'">'. |
23 | - Display::return_icon('add.png',get_lang('AddDateAndTime'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
23 | + Display::return_icon('add.png', get_lang('AddDateAndTime'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
24 | 24 | echo '<a onclick="javascript:if(!confirm(\''.get_lang('AreYouSureToDeleteAllDates').'\')) return false;" href="index.php?'.api_get_cidreq().'&action=calendar_all_delete&attendance_id='.$attendance_id.'">'. |
25 | - Display::return_icon('clean.png',get_lang('CleanCalendar'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
25 | + Display::return_icon('clean.png', get_lang('CleanCalendar'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | echo '</div>'; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $form = new FormValidator( |
59 | 59 | 'attendance_calendar_add', |
60 | 60 | 'POST', |
61 | - 'index.php?action=calendar_add&attendance_id='.$attendance_id.'&' . api_get_cidreq(), |
|
61 | + 'index.php?action=calendar_add&attendance_id='.$attendance_id.'&'.api_get_cidreq(), |
|
62 | 62 | '' |
63 | 63 | ); |
64 | 64 | $form->addElement('header', get_lang('AddADateTime')); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'weekly' => get_lang('RepeatWeekly'), |
96 | 96 | 'monthlyByDate' => get_lang('RepeatMonthlyByDate') |
97 | 97 | ); |
98 | - $form->addElement('select', 'repeat_type', get_lang('RepeatType') , $a_repeat_type); |
|
98 | + $form->addElement('select', 'repeat_type', get_lang('RepeatType'), $a_repeat_type); |
|
99 | 99 | |
100 | 100 | $form->addElement('date_picker', 'end_date_time', get_lang('RepeatEnd'), array('form_name'=>'attendance_calendar_add')); |
101 | 101 | $defaults['end_date_time'] = date('Y-m-d'); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $form = new FormValidator( |
132 | 132 | 'attendance_calendar_edit', |
133 | 133 | 'POST', |
134 | - 'index.php?action=calendar_edit&attendance_id=' . $attendance_id . '&calendar_id=' . $calendar_id . '&' . api_get_cidreq(), |
|
134 | + 'index.php?action=calendar_edit&attendance_id='.$attendance_id.'&calendar_id='.$calendar_id.'&'.api_get_cidreq(), |
|
135 | 135 | '' |
136 | 136 | ); |
137 | 137 | $form->addDateTimePicker('date_time', array(get_lang('Date')), array('form_name'=>'attendance_calendar_edit'), 5); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | get_lang('DateTime'), |
148 | 148 | null, |
149 | 149 | ICON_SIZE_MEDIUM |
150 | - ).' '.substr($calendar['date_time'], 0, strlen($calendar['date_time'])- 3) .' '; |
|
150 | + ).' '.substr($calendar['date_time'], 0, strlen($calendar['date_time']) - 3).' '; |
|
151 | 151 | |
152 | 152 | if (isset($calendar['groups']) && !empty($calendar['groups'])) { |
153 | 153 | foreach ($calendar['groups'] as $group) { |
@@ -91,7 +91,7 @@ |
||
91 | 91 | $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span> |
92 | 92 | <table width="100%">'; |
93 | 93 | $content .= CourseHome::show_session_data($session_id); |
94 | - $content .= '</table></div>'; |
|
94 | + $content .= '</table></div>'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $content .= '<div class="Authoringview">'; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | // Show message to confirm that a tool it to be hidden from available tools |
38 | 38 | // visibility 0,1->2 |
39 | 39 | if (!empty($_GET['askDelete'])) { |
40 | - $content .='<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
40 | + $content .= '<div id="toolhide">'.get_lang('DelLk').'<br /> |
|
41 | 41 | <a href="'.api_get_self().'">'.get_lang('No').'</a> | |
42 | 42 | <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a> |
43 | 43 | </div>'; |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | |
56 | 56 | // Start of tools for CourseAdmins (teachers/tutors) |
57 | 57 | if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
58 | - $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;"> |
|
58 | + $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;"> |
|
59 | 59 | <div class="normal-message" id="id_normal_message" style="display:none">'; |
60 | - $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
61 | - $content .= get_lang('PleaseStandBy'); |
|
60 | + $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/> '; |
|
61 | + $content .= get_lang('PleaseStandBy'); |
|
62 | 62 | |
63 | - $content .= '</div> |
|
63 | + $content .= '</div> |
|
64 | 64 | <div class="confirmation-message" id="id_confirmation_message" style="display:none"></div></div>'; |
65 | - $content .= '<div id="activity-3col">'; |
|
65 | + $content .= '<div id="activity-3col">'; |
|
66 | 66 | |
67 | 67 | if (api_get_setting('show_session_data') == 'true' && $session_id > 0) { |
68 | 68 | $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span> |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span> |
91 | 91 | <table width="100%">'; |
92 | 92 | $content .= CourseHome::show_session_data($session_id); |
93 | - $content .= '</table></div>'; |
|
93 | + $content .= '</table></div>'; |
|
94 | 94 | } |
95 | 95 | |
96 | - $content .= '<div class="Authoringview">'; |
|
96 | + $content .= '<div class="Authoringview">'; |
|
97 | 97 | $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
98 | 98 | $content .= CourseHome::show_tools_category($my_list); |
99 | 99 | $content .= '</div>'; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $order_tool_list = array(); |
107 | 107 | foreach ($my_list as $key => $new_tool) { |
108 | 108 | $tool_name = CourseHome::translate_tool_name($new_tool); |
109 | - $order_tool_list [$key]= $tool_name; |
|
109 | + $order_tool_list [$key] = $tool_name; |
|
110 | 110 | } |
111 | 111 | natsort($order_tool_list); |
112 | 112 | $my_temp_tool_array = array(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $return_skills = array(); |
40 | 40 | foreach ($skills as $skill) { |
41 | 41 | $skill['caption'] = $skill['name']; |
42 | - $skill['value'] = $skill['id']; |
|
42 | + $skill['value'] = $skill['id']; |
|
43 | 43 | $return_skills[] = $skill; |
44 | 44 | } |
45 | 45 | echo json_encode($return_skills); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | if (!empty($gradebooks)) { |
52 | 52 | foreach ($gradebooks as $gradebook) { |
53 | 53 | if ($gradebook['parent_id'] == 0 && !empty($gradebook['certif_min_score']) && !empty($gradebook['document_id'])) { |
54 | - $gradebook_list[] = $gradebook; |
|
54 | + $gradebook_list[] = $gradebook; |
|
55 | 55 | //$gradebook['name'] = $gradebook['name']; |
56 | 56 | //$gradebook_list[] = $gradebook; |
57 | 57 | } else { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $return = array(); |
68 | 68 | foreach ($gradebooks as $item) { |
69 | 69 | $item['caption'] = $item['name']; |
70 | - $item['value'] = $item['id']; |
|
70 | + $item['value'] = $item['id']; |
|
71 | 71 | $return[] = $item; |
72 | 72 | } |
73 | 73 | echo json_encode($return); |
@@ -92,13 +92,13 @@ discard block |
||
92 | 92 | } |
93 | 93 | break; |
94 | 94 | case 'get_skills_by_profile': |
95 | - $skill_rel_profile = new SkillRelProfile(); |
|
95 | + $skill_rel_profile = new SkillRelProfile(); |
|
96 | 96 | $profile_id = isset($_REQUEST['profile_id']) ? $_REQUEST['profile_id'] : null; |
97 | 97 | $skills = $skill_rel_profile->get_skills_by_profile($profile_id); |
98 | 98 | echo json_encode($skills); |
99 | 99 | break; |
100 | 100 | case 'get_saved_profiles': |
101 | - $skill_profile = new SkillProfile(); |
|
101 | + $skill_profile = new SkillProfile(); |
|
102 | 102 | $profiles = $skill_profile->get_all(); |
103 | 103 | Display::display_no_header(); |
104 | 104 | Display::$global_template->assign('profiles', $profiles); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $success = false; |
188 | 188 | } |
189 | 189 | |
190 | - $result = array ( |
|
190 | + $result = array( |
|
191 | 191 | 'success' => $success, |
192 | 192 | 'data' => $return |
193 | 193 | ); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $skills = $skill->get_direct_parents($id); |
199 | 199 | $return = array(); |
200 | 200 | foreach ($skills as $skill) { |
201 | - $return [$skill['data']['id']] = array ( |
|
201 | + $return [$skill['data']['id']] = array( |
|
202 | 202 | 'id' => $skill['data']['id'], |
203 | 203 | 'parent_id' => $skill['data']['parent_id'], |
204 | 204 | 'name' => $skill['data']['name'] |
@@ -207,8 +207,8 @@ discard block |
||
207 | 207 | echo json_encode($return); |
208 | 208 | break; |
209 | 209 | case 'profile_matches': |
210 | - $skill_rel_user = new SkillRelUser(); |
|
211 | - $skills = (!empty($_REQUEST['skill_id'])?$_REQUEST['skill_id']:array()); |
|
210 | + $skill_rel_user = new SkillRelUser(); |
|
211 | + $skills = (!empty($_REQUEST['skill_id']) ? $_REQUEST['skill_id'] : array()); |
|
212 | 212 | |
213 | 213 | $total_skills_to_search = $skills; |
214 | 214 | $users = $skill_rel_user->get_user_by_skills($skills); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | //$gradebook['name'] = $gradebook['name']; |
56 | 56 | //$gradebook_list[] = $gradebook; |
57 | 57 | } else { |
58 | - // $gradebook['name'] = $gradebook_list[$gradebook['parent_id']]['name'].' > '.$gradebook['name']; |
|
58 | + // $gradebook['name'] = $gradebook_list[$gradebook['parent_id']]['name'].' > '.$gradebook['name']; |
|
59 | 59 | //$gradebook_list[] = $gradebook; |
60 | 60 | } |
61 | 61 | } |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | require_once '../global.inc.php'; |
11 | -require_once api_get_path(SYS_CODE_PATH) . 'forum/forumfunction.inc.php'; |
|
11 | +require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; |
|
12 | 12 | |
13 | 13 | // First, protect this script |
14 | 14 | api_protect_course_script(false); |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | break; |
64 | 64 | } |
65 | 65 | // If pass all previous control, user can edit post |
66 | - $courseId = isset($_REQUEST['c_id'])? intval($_REQUEST['c_id']) : api_get_course_int_id(); |
|
66 | + $courseId = isset($_REQUEST['c_id']) ? intval($_REQUEST['c_id']) : api_get_course_int_id(); |
|
67 | 67 | $json['courseId'] = $courseId; |
68 | - $forumId = isset($_REQUEST['forum'])? intval($_REQUEST['forum']) : null; |
|
68 | + $forumId = isset($_REQUEST['forum']) ? intval($_REQUEST['forum']) : null; |
|
69 | 69 | $json['forum'] = $forumId; |
70 | - $threadId = isset($_REQUEST['thread'])? intval($_REQUEST['thread']) : null; |
|
70 | + $threadId = isset($_REQUEST['thread']) ? intval($_REQUEST['thread']) : null; |
|
71 | 71 | $json['thread'] = $threadId; |
72 | - $postId = isset($_REQUEST['postId'])? intval($_REQUEST['postId']) : null; |
|
72 | + $postId = isset($_REQUEST['postId']) ? intval($_REQUEST['postId']) : null; |
|
73 | 73 | $json['postId'] = $postId; |
74 | 74 | |
75 | 75 | if (!empty($courseId) && |
@@ -23,7 +23,7 @@ |
||
23 | 23 | // set URL and other appropriate options |
24 | 24 | $defaults = array( |
25 | 25 | CURLOPT_URL => $url, |
26 | - CURLOPT_FOLLOWLOCATION => true, // follow redirects accept youtube.com |
|
26 | + CURLOPT_FOLLOWLOCATION => true, // follow redirects accept youtube.com |
|
27 | 27 | CURLOPT_HEADER => 0, |
28 | 28 | CURLOPT_RETURNTRANSFER => true, |
29 | 29 | CURLOPT_TIMEOUT => 4 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $list_sessions = SessionManager::get_sessions_by_user($user_id, true); |
16 | 16 | if (!empty($list_sessions)) { |
17 | 17 | foreach ($list_sessions as $session_item) { |
18 | - echo $session_item['session_name'] . '<br />'; |
|
18 | + echo $session_item['session_name'].'<br />'; |
|
19 | 19 | } |
20 | 20 | } else { |
21 | 21 | echo get_lang('NoSessionsForThisUser'); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | [ |
30 | 30 | 's.name' => [ |
31 | 31 | 'operator' => 'LIKE', |
32 | - 'value' => "%" . $_REQUEST['q'] . "%" |
|
32 | + 'value' => "%".$_REQUEST['q']."%" |
|
33 | 33 | ] |
34 | 34 | ] |
35 | 35 | ); |
@@ -488,7 +488,7 @@ |
||
488 | 488 | $remind_list |
489 | 489 | ); |
490 | 490 | |
491 | - // Destruction of the Question object |
|
491 | + // Destruction of the Question object |
|
492 | 492 | unset($objQuestionTmp); |
493 | 493 | if ($debug) { |
494 | 494 | error_log(" -- end question -- "); |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | $exercise_id = intval($_GET['exercise_id']); |
33 | 33 | $page = intval($_REQUEST['page']); //page |
34 | 34 | $limit = intval($_REQUEST['rows']); //quantity of rows |
35 | - $sidx = $_REQUEST['sidx']; //index to filter |
|
36 | - $sord = $_REQUEST['sord']; //asc or desc |
|
35 | + $sidx = $_REQUEST['sidx']; //index to filter |
|
36 | + $sord = $_REQUEST['sord']; //asc or desc |
|
37 | 37 | |
38 | - if (!in_array($sord, array('asc','desc'))) { |
|
38 | + if (!in_array($sord, array('asc', 'desc'))) { |
|
39 | 39 | $sord = 'desc'; |
40 | 40 | } |
41 | 41 | // get index row - i.e. user click to sort $sord = $_GET['sord']; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $total_pages = 0; |
65 | 65 | if ($count > 0) { |
66 | 66 | if (!empty($limit)) { |
67 | - $total_pages = ceil($count/$limit); |
|
67 | + $total_pages = ceil($count / $limit); |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $response->page = $page; |
127 | 127 | $response->total = $total_pages; |
128 | 128 | $response->records = $count; |
129 | - $i=0; |
|
129 | + $i = 0; |
|
130 | 130 | |
131 | 131 | if (!empty($results)) { |
132 | 132 | foreach ($results as $row) { |
@@ -140,22 +140,22 @@ discard block |
||
140 | 140 | GROUP by question_id |
141 | 141 | ) as count_table"; |
142 | 142 | $result_count = Database::query($sql); |
143 | - $count_questions = Database::fetch_array($result_count,'ASSOC'); |
|
143 | + $count_questions = Database::fetch_array($result_count, 'ASSOC'); |
|
144 | 144 | $count_questions = $count_questions['count_question_id']; |
145 | 145 | |
146 | 146 | $row['count_questions'] = $count_questions; |
147 | 147 | |
148 | 148 | $response->rows[$i]['id'] = $row['exe_id']; |
149 | - $remaining = strtotime($row['start_date'])+($oExe->expired_time*60) - strtotime(api_get_utc_datetime(time())); |
|
150 | - $h = floor($remaining/3600); |
|
151 | - $m = floor(($remaining - ($h*3600))/60); |
|
152 | - $s = ($remaining - ($h*3600) - ($m*60)); |
|
149 | + $remaining = strtotime($row['start_date']) + ($oExe->expired_time * 60) - strtotime(api_get_utc_datetime(time())); |
|
150 | + $h = floor($remaining / 3600); |
|
151 | + $m = floor(($remaining - ($h * 3600)) / 60); |
|
152 | + $s = ($remaining - ($h * 3600) - ($m * 60)); |
|
153 | 153 | $array = array( |
154 | 154 | $row['firstname'], |
155 | 155 | $row['lastname'], |
156 | - api_format_date($row['start_date'], DATE_TIME_FORMAT_LONG).' ['.($h>0?$h.':':'').sprintf("%02d",$m).':'.sprintf("%02d",$s).']', |
|
156 | + api_format_date($row['start_date'], DATE_TIME_FORMAT_LONG).' ['.($h > 0 ? $h.':' : '').sprintf("%02d", $m).':'.sprintf("%02d", $s).']', |
|
157 | 157 | $row['count_questions'], |
158 | - round($row['score']*100).'%' |
|
158 | + round($row['score'] * 100).'%' |
|
159 | 159 | ); |
160 | 160 | $response->rows[$i]['cell'] = $array; |
161 | 161 | $i++; |
@@ -361,8 +361,8 @@ discard block |
||
361 | 361 | $objQuestionTmp = Question::read($my_question_id, $course_id); |
362 | 362 | |
363 | 363 | // Getting free choice data. |
364 | - if ($objQuestionTmp->type == FREE_ANSWER && $type == 'all') { |
|
365 | - $my_choice = isset($_REQUEST['free_choice'][$my_question_id]) && !empty($_REQUEST['free_choice'][$my_question_id]) ? $_REQUEST['free_choice'][$my_question_id]: null; |
|
364 | + if ($objQuestionTmp->type == FREE_ANSWER && $type == 'all') { |
|
365 | + $my_choice = isset($_REQUEST['free_choice'][$my_question_id]) && !empty($_REQUEST['free_choice'][$my_question_id]) ? $_REQUEST['free_choice'][$my_question_id] : null; |
|
366 | 366 | } |
367 | 367 | |
368 | 368 | if ($type == 'all') { |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | $objQuestion = Question::read($questionId); |
519 | 519 | $objQuestion->get_question_type_name(); |
520 | 520 | |
521 | - echo '<p class="lead">' . $objQuestion->get_question_type_name() . '</p>'; |
|
521 | + echo '<p class="lead">'.$objQuestion->get_question_type_name().'</p>'; |
|
522 | 522 | //echo get_lang('Level').': '.$objQuestionTmp->selectLevel(); |
523 | 523 | ExerciseLib::showQuestion( |
524 | 524 | $questionId, |