Merge pull request #856 from jloguercio/7850

Adicional Fix for unsubscribe course (hot courses) - Refs #7850
1.10.x
Julio 9 years ago
commit 9d37a654fa
  1. 3
      main/auth/courses.php

@ -156,8 +156,9 @@ if (isset($_REQUEST['subscribe_course'])) {
}
// We are unsubscribing from a course (=Unsubscribe from course).
if (isset($_GET['unsubscribe'])) {
$search_term = isset($_GET['search_term']) ? $_GET['search_term'] : null;
if ($ctok == $_GET['sec_token']) {
$courses_controller->unsubscribe_user_from_course($_GET['unsubscribe'], $_GET['search_term'], $categoryCode);
$courses_controller->unsubscribe_user_from_course($_GET['unsubscribe'], $search_term, $categoryCode);
//$message = remove_user_from_course($_user['user_id'], $_POST['unsubscribe']);
}
}

Loading…
Cancel
Save