Admin: Fix Undefined array key 'subscribe' error -refs BT#22274

pull/5949/head
NicoDucou 9 months ago
parent 37134c81ad
commit d0d5d60143
  1. 2
      public/main/admin/course_user_import.php

@ -174,7 +174,7 @@ if ($form->validate()) {
if (0 == count($errors)) {
$inserted_in_course = save_data($users_courses);
// Build the alert message in case there were visual codes subscribed to.
if ($_POST['subscribe']) {
if (isset($_POST['subscribe']) && $_POST['subscribe']) {
//$warn = get_lang('The users have been subscribed to the following courses because several courses share the same visual code').': ';
} else {
$warn = get_lang('The users have been unsubscribed from the following courses because several courses share the same visual code').': ';

Loading…
Cancel
Save