Minor - format code.

1.9.x
Julio Montoya 10 years ago
parent b40d2da1e4
commit 39e95271ba
  1. 11
      main/course_info/legal.php

@ -109,6 +109,7 @@ if (empty($session_id)) {
$user_id,
$course_code
);
if ($user_accepted_legal || $user_pass_open_course) {
//Redirect to course home
header('Location: '.$url);
@ -122,10 +123,14 @@ if (empty($session_id)) {
header('Location: '.$url);
}
$user_session_status = SessionManager::get_user_status_in_session($user_id, $course_code, $session_id);
$userStatus = SessionManager::get_user_status_in_session($user_id, $course_code, $session_id);
if (isset($user_session_status) || api_check_user_access_to_legal($course_info['visibility'])) {
$user_accepted_legal = CourseManager::is_user_accepted_legal($user_id, $course_code, $session_id);
if (isset($userStatus) || api_check_user_access_to_legal($course_info['visibility'])) {
$user_accepted_legal = CourseManager::is_user_accepted_legal(
$user_id,
$course_code,
$session_id
);
if ($user_accepted_legal || $user_pass_open_course) {
// Redirect to course session home.
header('Location: '.$url);

Loading…
Cancel
Save