Boost: Remove very heavy useless call in user_portal: the get_personnal_courses_list() was called twice without reason

skala
Yannick Warnier 13 years ago
parent ca0ca91f33
commit 272ecc4754
  1. 3
      user_portal.php

@ -45,9 +45,6 @@ api_block_anonymous_users(); // Only users who are logged in can proceed.
//$load_dirs = api_get_setting('courses_list_document_dynamic_dropdown');
$load_dirs = true;
// This is the main function to get the course list.
$personal_course_list = UserManager::get_personal_session_course_list(api_get_user_id());
// Check if a user is enrolled only in one course for going directly to the course after the login.
if (api_get_setting('go_to_course_after_login') == 'true') {
$my_session_list = array();

Loading…
Cancel
Save