Skip to content

Commit

Permalink
Admin: Fix Undefined array key 'subscribe' error -refs BT#22274
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Dec 6, 2024
1 parent 37134c8 commit d0d5d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/main/admin/course_user_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function parse_csv_data($file)
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').': ';
Expand Down

0 comments on commit d0d5d60

Please sign in to comment.