summaryrefslogtreecommitdiff
path: root/restorebackup.php
diff options
context:
space:
mode:
Diffstat (limited to 'restorebackup.php')
-rw-r--r--restorebackup.php2
1 files changed, 1 insertions, 1 deletions
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'));