|
|
|
|
@ -3910,6 +3910,11 @@ class SessionManager |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($session_id) { |
|
|
|
|
|
|
|
|
|
if ($debug) { |
|
|
|
|
$logger->addError("Sessions - Session to be updated #$session_id"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$sessionInfo = api_get_session_info($session_id); |
|
|
|
|
if (!empty($daysCoachAccessBeforeBeginning) && !empty($daysCoachAccessAfterBeginning)) { |
|
|
|
|
if (empty($sessionInfo['nb_days_access_before_beginning']) || |
|
|
|
|
@ -3954,6 +3959,12 @@ class SessionManager |
|
|
|
|
WHERE id_session = '$session_id' AND status <> 2"; |
|
|
|
|
Database::query($sql); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if ($debug) { |
|
|
|
|
$logger->addError( |
|
|
|
|
"Sessions - Session not found" |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$session_counter++; |
|
|
|
|
|