diff --git a/backup/moodle2/restore_quickmail_stepslib.php b/backup/moodle2/restore_quickmail_stepslib.php index 62b3169d..7eeef663 100644 --- a/backup/moodle2/restore_quickmail_stepslib.php +++ b/backup/moodle2/restore_quickmail_stepslib.php @@ -49,18 +49,18 @@ protected function process_block($data) { if ($restore and isset($data->emaillogs['log'])) { global $DB; - $current = context_course::instance($this->get_courseid()); + $current_context = context_course::instance($this->get_courseid()); $params = array( 'backupid' => $this->get_restoreid(), 'itemname' => 'context', - 'newitemid' => $context->id + 'newitemid' => $current_context->id ); $id = $DB->get_record('backup_ids_temp', $params)->itemid; foreach ($data->emaillogs['log'] as $log) { - $this->process_log($log, $id, $context); + $this->process_log($log, $id, $current_context); } } diff --git a/version.php b/version.php index b4c51536..2b4b238a 100644 --- a/version.php +++ b/version.php @@ -21,8 +21,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$plugin->version = 2017110700; +$plugin->version = 2017122000; $plugin->requires = 2013051400; -$plugin->release = "v1.7.4"; +$plugin->release = "v1.7.5"; $plugin->maturity = MATURITY_STABLE; $plugin->component = 'block_quickmail';