mirror of
https://github.com/moodle/moodle.git
synced 2025-02-09 01:21:57 +01:00
MDL-23503 restore without users - fixed two incorrect function calls
This commit is contained in:
parent
773a746835
commit
25d3cf44e9
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user