File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 60
60
echo 'User added to the session ' ;
61
61
}
62
62
// Registering user to the new session
63
- SessionManager::subscribeUsersToSession (
64
- $ new_session_id ,
65
- [$ user_id ],
66
- false ,
67
- false
68
- );
63
+ if ($ update_database ) {
64
+ SessionManager::subscribeUsersToSession (
65
+ $ new_session_id ,
66
+ [$ user_id ],
67
+ false ,
68
+ false
69
+ );
70
+ }
69
71
}
70
72
71
73
$ course_info = api_get_course_info ($ origin_course_code );
@@ -247,8 +249,8 @@ function get_courses_list_by_user_id_based_in_exercises($user_id)
247
249
echo '<tr> ' ;
248
250
foreach ($ course_list as $ course ) {
249
251
echo '<td> ' ;
250
- if (isset ($ course ['id_session ' ]) && !empty ($ course ['id_session ' ])) {
251
- echo '<b> ' .get_lang ('SessionName ' ).'</b> ' .$ my_session_list [$ course ['id_session ' ]].'<br /> ' ;
252
+ if (isset ($ course ['session_id ' ]) && !empty ($ course ['session_id ' ])) {
253
+ echo '<b> ' .get_lang ('SessionName ' ).'</b> ' .$ my_session_list [$ course ['session_id ' ]].'<br /> ' ;
252
254
}
253
255
echo $ course ['name ' ];
254
256
echo ' ( ' .$ course ['code ' ].') ' ;
@@ -262,10 +264,10 @@ function get_courses_list_by_user_id_based_in_exercises($user_id)
262
264
263
265
foreach ($ course_list as $ course ) {
264
266
$ course_code = $ course ['code ' ];
265
- if (empty ($ course ['id_session ' ])) {
267
+ if (empty ($ course ['session_id ' ])) {
266
268
$ session_id = 0 ;
267
269
} else {
268
- $ session_id = $ course ['id_session ' ];
270
+ $ session_id = $ course ['session_id ' ];
269
271
}
270
272
echo '<td> ' ;
271
273
echo get_lang ('MoveTo ' );
You can’t perform that action at this time.
0 commit comments