Skip to content

Commit d994797

Browse files
committed
Minor - fix php warning
1 parent 935454c commit d994797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: main/admin/course_intro_pdf_import.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
set_time_limit(0);
2222

23-
if ($_POST['formSent']) {
23+
if (isset($_POST['formSent'])) {
2424
if (empty($_FILES['import_file']['tmp_name'])) {
2525
$error_message = get_lang('UplUploadFailed');
2626
Display::addFlash(Display::return_message($error_message, 'error', false));
@@ -51,7 +51,7 @@
5151
}
5252
$error_message .= '</ul>';
5353
Display::addFlash(Display::return_message($error_message, 'normal', false));
54-
} elseif ($_POST['formSent']) {
54+
} elseif (isset($_POST['formSent'])) {
5555
Display::addFlash(
5656
Display::return_message(
5757
get_lang('CourseIntroductionsAllImportedSuccessfully'),

0 commit comments

Comments
 (0)