|
|
|
@ -888,7 +888,8 @@ class SessionManager |
|
|
|
|
* @param int User id |
|
|
|
|
* @return bool True in case of success, false in case of error |
|
|
|
|
*/ |
|
|
|
|
public static function unsubscribe_user_from_session($session_id, $user_id) { |
|
|
|
|
public static function unsubscribe_user_from_session($session_id, $user_id) |
|
|
|
|
{ |
|
|
|
|
$session_id = (int)$session_id; |
|
|
|
|
$user_id = (int)$user_id; |
|
|
|
|
|
|
|
|
@ -1710,7 +1711,7 @@ class SessionManager |
|
|
|
|
WHERE id_coach = $user_id"; |
|
|
|
|
|
|
|
|
|
if (api_is_multiple_url_enabled()) { |
|
|
|
|
$tbl_session_rel_access_url= Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
|
|
|
|
$tbl_session_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
|
|
|
|
$access_url_id = api_get_current_access_url_id(); |
|
|
|
|
if ($access_url_id != -1) { |
|
|
|
|
$sql = 'SELECT DISTINCT session.* |
|
|
|
@ -2672,6 +2673,7 @@ class SessionManager |
|
|
|
|
/** |
|
|
|
|
* @param array $sessions |
|
|
|
|
* @param array $courses |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public static function copyCoachesFromSessionToCourse($sessions, $courses) |
|
|
|
|
{ |
|
|
|
|