From 77b2662ffb96d9ac51272704906f2b5d5c834310 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 12 Oct 2017 14:53:16 +0800 Subject: [PATCH] MDL-55356 backup: Correct variable name --- backup/moodle2/restore_block_task.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/moodle2/restore_block_task.class.php b/backup/moodle2/restore_block_task.class.php index 1b18035324a..eb5cd471788 100644 --- a/backup/moodle2/restore_block_task.class.php +++ b/backup/moodle2/restore_block_task.class.php @@ -102,7 +102,7 @@ abstract class restore_block_task extends restore_task { if (\core_search\manager::is_indexing_enabled()) { $wholecourse = $this->get_target() == backup::TARGET_NEW_COURSE; $wholecourse = $wholecourse || $this->setting_exists('overwrite_conf') && $this->get_setting_value('overwrite_conf'); - if (!$required) { + if (!$wholecourse) { $this->add_step(new restore_block_search_index('block_search_index')); } }