From 2f04aeab6d7b899a661763e20fdd2e58e635b74d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 2 Nov 2018 02:06:47 +0400 Subject: Correction of possible problems Signed-off-by: Valentin Popov --- restorebackup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'restorebackup.php') diff --git a/restorebackup.php b/restorebackup.php index 2c0cb39..db052f9 100644 --- a/restorebackup.php +++ b/restorebackup.php @@ -45,7 +45,7 @@ if ($mform->is_cancelled()) { } /* Processing the received file */ -if ($data = $mform->get_data()) { +if (!empty($data = $mform->get_data())) { $content = $mform->get_file_content('backupfile'); local_webhooks_restore_backup($content); redirect($managerservice, new lang_string('restorefinished', 'moodle')); -- cgit v1.2.3