|
|
|
@ -23,8 +23,6 @@ if (!api_get_multiple_access_url()) { |
|
|
|
|
$first_letter_course = ''; |
|
|
|
|
$courses = []; |
|
|
|
|
$url_list = []; |
|
|
|
|
$users = []; |
|
|
|
|
|
|
|
|
|
$tbl_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL); |
|
|
|
|
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE); |
|
|
|
|
|
|
|
|
@ -50,10 +48,6 @@ if (isset($_POST['form_sent']) && $_POST['form_sent']) { |
|
|
|
|
$url_list = is_array($_POST['url_list']) ? $_POST['url_list'] : []; |
|
|
|
|
$first_letter_course = $_POST['first_letter_course']; |
|
|
|
|
|
|
|
|
|
foreach ($users as $key => $value) { |
|
|
|
|
$users[$key] = intval($value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($form_sent == 1) { |
|
|
|
|
if (count($courses) == 0 || count($url_list) == 0) { |
|
|
|
|
echo Display::return_message(get_lang('At least one course and one URL'), 'error'); |
|
|
|
|