From 25d3cf44e9f7b993deef1dcbe75910be1af47398 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Fri, 23 Jul 2010 09:56:38 +0000 Subject: [PATCH] MDL-23503 restore without users - fixed two incorrect function calls --- backup/moodle2/restore_stepslib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index 6a32dab7927..de16dcba63f 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -159,7 +159,7 @@ class restore_load_included_users extends restore_execution_step { if ($this->task->get_preloaded_information()) { // if info is already preloaded, nothing to do return; } - if (!$this->task->get_setting('users')) { // No userinfo being restored, nothing to do + if (!$this->task->get_setting_value('users')) { // No userinfo being restored, nothing to do return; } $file = $this->get_basepath() . '/users.xml'; @@ -181,7 +181,7 @@ class restore_process_included_users extends restore_execution_step { if ($this->task->get_preloaded_information()) { // if info is already preloaded, nothing to do return; } - if (!$this->task->get_setting('users')) { // No userinfo being restored, nothing to do + if (!$this->task->get_setting_value('users')) { // No userinfo being restored, nothing to do return; } restore_dbops::process_included_users($this->get_restoreid(), $this->task->get_courseid(), $this->task->get_userid(), $this->task->is_samesite());