@@ -1596,7 +1596,7 @@ discard block |
||
1596 | 1596 | } |
1597 | 1597 | } |
1598 | 1598 | |
1599 | - return false; |
|
1599 | + return false; |
|
1600 | 1600 | } |
1601 | 1601 | |
1602 | 1602 | /** |
@@ -1766,10 +1766,10 @@ discard block |
||
1766 | 1766 | $roundedStop = substr($stop, 0, -2).'00'; |
1767 | 1767 | $roundedStart = Database::escape_string($roundedStart); |
1768 | 1768 | $roundedStop = Database::escape_string($roundedStop); |
1769 | - $month_filter = " AND login_course_date > '$roundedStart' AND login_course_date < '$roundedStop' "; |
|
1769 | + $month_filter = " AND login_course_date > '$roundedStart' AND login_course_date < '$roundedStop' "; |
|
1770 | 1770 | $courseId = intval($courseId); |
1771 | 1771 | $session_id = intval($session_id); |
1772 | - $count = 0; |
|
1772 | + $count = 0; |
|
1773 | 1773 | $tbl_track_e_course_access = Database::get_main_table(TABLE_STATISTIC_TRACK_E_COURSE_ACCESS); |
1774 | 1774 | $sql = "SELECT count(*) as count_connections |
1775 | 1775 | FROM $tbl_track_e_course_access |
@@ -1901,7 +1901,7 @@ discard block |
||
1901 | 1901 | $select_lp_id = ', orig_lp_id as lp_id '; |
1902 | 1902 | } |
1903 | 1903 | |
1904 | - $sql = "SELECT count(id) |
|
1904 | + $sql = "SELECT count(id) |
|
1905 | 1905 | FROM $tbl_course_quiz |
1906 | 1906 | WHERE c_id = {$course_info['real_id']} $condition_active $condition_quiz "; |
1907 | 1907 | $count_quiz = 0; |
@@ -3798,8 +3798,8 @@ discard block |
||
3798 | 3798 | |
3799 | 3799 | $condition_session = ''; |
3800 | 3800 | if (isset($session_id)) { |
3801 | - $session_id = intval($session_id); |
|
3802 | - $condition_session = ' AND f.session_id = '.$session_id; |
|
3801 | + $session_id = intval($session_id); |
|
3802 | + $condition_session = ' AND f.session_id = '.$session_id; |
|
3803 | 3803 | } |
3804 | 3804 | |
3805 | 3805 | $groupId = intval($groupId); |
@@ -4890,10 +4890,10 @@ discard block |
||
4890 | 4890 | ) { |
4891 | 4891 | $settings = isset($columnSetting[1]) ? $columnSetting[1] : []; |
4892 | 4892 | $html .= Display::tag( |
4893 | - 'th', |
|
4894 | - $columnSetting[0], |
|
4895 | - $settings |
|
4896 | - ); |
|
4893 | + 'th', |
|
4894 | + $columnSetting[0], |
|
4895 | + $settings |
|
4896 | + ); |
|
4897 | 4897 | } |
4898 | 4898 | } |
4899 | 4899 | |
@@ -5908,9 +5908,9 @@ discard block |
||
5908 | 5908 | } |
5909 | 5909 | |
5910 | 5910 | /** |
5911 | - * @param FormValidator $form |
|
5912 | - * @return mixed |
|
5913 | - */ |
|
5911 | + * @param FormValidator $form |
|
5912 | + * @return mixed |
|
5913 | + */ |
|
5914 | 5914 | public static function setUserSearchForm($form) |
5915 | 5915 | { |
5916 | 5916 | global $_configuration; |
@@ -304,7 +304,7 @@ |
||
304 | 304 | |
305 | 305 | // Object initialisation |
306 | 306 | $dropbox_person = new Dropbox_Person(api_get_user_id(), $is_courseAdmin, $is_courseTutor); |
307 | - // note: are the $is_courseAdmin and $is_courseTutor parameters needed???? |
|
307 | + // note: are the $is_courseAdmin and $is_courseTutor parameters needed???? |
|
308 | 308 | |
309 | 309 | // Constructing the array that contains the total number of feedback messages per document. |
310 | 310 | $number_feedback = get_total_number_feedback(); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $nb_ext_auth_source_added++; |
177 | 177 | } |
178 | 178 | } |
179 | - if ($nb_ext_auth_source_added > 0) { |
|
179 | + if ($nb_ext_auth_source_added > 0) { |
|
180 | 180 | $group[] = $form->createElement('radio', 'password_auto', null, get_lang('ExternalAuthentication').' ', 2); |
181 | 181 | $group[] = $form->createElement('select', 'auth_source', null, $auth_sources); |
182 | 182 | $group[] = $form->createElement('static', '', '', '<br />'); |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $expiration_date = null; |
370 | 370 | } |
371 | 371 | |
372 | - $active = intval($user['active']); |
|
372 | + $active = intval($user['active']); |
|
373 | 373 | if (api_get_setting('login_is_email') == 'true') { |
374 | 374 | $username = $email; |
375 | 375 | } |
@@ -402,8 +402,8 @@ discard block |
||
402 | 402 | $platform_admin |
403 | 403 | ); |
404 | 404 | |
405 | - Security::clear_token(); |
|
406 | - $tok = Security::get_token(); |
|
405 | + Security::clear_token(); |
|
406 | + $tok = Security::get_token(); |
|
407 | 407 | if (!empty($user_id)) { |
408 | 408 | if (!empty($picture['name'])) { |
409 | 409 | $picture_uri = UserManager::update_user_picture( |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | } |
466 | 466 | |
467 | 467 | if (!empty($message)) { |
468 | - $message = Display::return_message(stripslashes($message)); |
|
468 | + $message = Display::return_message(stripslashes($message)); |
|
469 | 469 | } |
470 | 470 | $content = $form->returnForm(); |
471 | 471 |
@@ -595,7 +595,7 @@ |
||
595 | 595 | .' width="40px">'; |
596 | 596 | $userInfo = api_get_user_info($user_invitation_id); |
597 | 597 | $invitations .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php?u='.$user_invitation_id.'">' |
598 | - .api_get_person_name($userInfo['firstname'], $userInfo['lastname']).'</a>'; |
|
598 | + .api_get_person_name($userInfo['firstname'], $userInfo['lastname']).'</a>'; |
|
599 | 599 | |
600 | 600 | $invitations .= '<div class="pull-right">'; |
601 | 601 | $invitations .= Display::toolbarButton( |
@@ -121,9 +121,9 @@ |
||
121 | 121 | $oldTableTutorsCompany = 'plugin_sepe_tutors_empresa'; |
122 | 122 | $oldTableCompetence = 'plugin_sepe_competencia_docente'; |
123 | 123 | $sql = "RENAME TABLE " |
124 | - . $oldTableCenters ." TO ". self::TABLE_SEPE_CENTERS .", " |
|
125 | - . $oldTableTutorsCompany ." TO ". self::TABLE_SEPE_TUTORS_COMPANY .", " |
|
126 | - . $oldTableCompetence ." TO ". self::TABLE_SEPE_TEACHING_COMPETENCE .";"; |
|
124 | + . $oldTableCenters ." TO ". self::TABLE_SEPE_CENTERS .", " |
|
125 | + . $oldTableTutorsCompany ." TO ". self::TABLE_SEPE_TUTORS_COMPANY .", " |
|
126 | + . $oldTableCompetence ." TO ". self::TABLE_SEPE_TEACHING_COMPETENCE .";"; |
|
127 | 127 | Database::query($sql); |
128 | 128 | |
129 | 129 | $sepeCourseActionsTable = self::TABLE_SEPE_COURSE_ACTIONS; |
@@ -192,7 +192,7 @@ |
||
192 | 192 | function listTutorType($condition) |
193 | 193 | { |
194 | 194 | global $tableTutorCompany; |
195 | - $sql = "SELECT * FROM $tableTutorCompany WHERE ".$condition." ORDER BY alias ASC, document_number ASC;"; |
|
195 | + $sql = "SELECT * FROM $tableTutorCompany WHERE ".$condition." ORDER BY alias ASC, document_number ASC;"; |
|
196 | 196 | $res = Database::query($sql); |
197 | 197 | $aux = array(); |
198 | 198 | while ($row = Database::fetch_assoc($res)) { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); |
39 | 39 | } |
40 | 40 | } else { |
41 | - //Checker exists centers |
|
41 | + //Checker exists centers |
|
42 | 42 | $sql = "SELECT * FROM $tableCenters |
43 | 43 | WHERE center_origin='".$centerOrigin."' AND center_code='".$centerCode."'"; |
44 | 44 | $rs_tmp = Database::query($sql); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | if (api_is_platform_admin() && $enable) { |
12 | 12 | echo '<div class="panel panel-default">'; |
13 | 13 | echo '<div class="panel-heading" role="tab">'; |
14 | - echo '<h4 class="panel-title">'.$title.'</h4>'; |
|
14 | + echo '<h4 class="panel-title">'.$title.'</h4>'; |
|
15 | 15 | echo '</div>'; |
16 | 16 | echo '<div class="panel-collapse collapse in" role="tabpanel">'; |
17 | 17 | echo '<div class="panel-body">'; |
@@ -782,7 +782,7 @@ |
||
782 | 782 | $sql = "SELECT * FROM $tutorTable |
783 | 783 | WHERE id='" . $tmp_aux['tutor_id'] . "' |
784 | 784 | LIMIT 1"; |
785 | - $rs_tutor = Database::query($sql); |
|
785 | + $rs_tutor = Database::query($sql); |
|
786 | 786 | if (Database::num_rows($rs_tutor)) { |
787 | 787 | $tmp = Database::fetch_assoc($rs_tutor); |
788 | 788 |