Skip to content

Commit d0d5d60

Browse files
committed
Admin: Fix Undefined array key 'subscribe' error -refs BT#22274
1 parent 37134c8 commit d0d5d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/main/admin/course_user_import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function parse_csv_data($file)
174174
if (0 == count($errors)) {
175175
$inserted_in_course = save_data($users_courses);
176176
// Build the alert message in case there were visual codes subscribed to.
177-
if ($_POST['subscribe']) {
177+
if (isset($_POST['subscribe']) && $_POST['subscribe']) {
178178
//$warn = get_lang('The users have been subscribed to the following courses because several courses share the same visual code').': ';
179179
} else {
180180
$warn = get_lang('The users have been unsubscribed from the following courses because several courses share the same visual code').': ';

0 commit comments

Comments
 (0)