From 4aac948f346985dc21bcb882ddf2bdff312202ba Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Thu, 10 Oct 2013 12:05:49 +0800 Subject: [PATCH] MDL-41838 Backup: Fix undefined variable Nice spotting Ankit! --- backup/util/helper/backup_general_helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/util/helper/backup_general_helper.class.php b/backup/util/helper/backup_general_helper.class.php index 9e9d2c289f1..645f2e93e28 100644 --- a/backup/util/helper/backup_general_helper.class.php +++ b/backup/util/helper/backup_general_helper.class.php @@ -243,7 +243,7 @@ abstract class backup_general_helper extends backup_helper { // Extract moodle_backup.xml. $tmpname = 'info_from_mbz_' . time() . '_' . random_string(4); $tmpdir = $CFG->tempdir . '/backup/' . $tmpname; - $packer = get_file_packer('application/vnd.moodle.backup'); + $fp = get_file_packer('application/vnd.moodle.backup'); $extracted = $fp->extract_to_pathname($filepath, $tmpdir, array('moodle_backup.xml')); $moodlefile = $tmpdir . '/' . 'moodle_backup.xml'; -- 2.43.0