Merge branch 'MDL-36580_32' of https://github.com/stronk7/moodle into MOODLE_32_STABLE
This commit is contained in:
@@ -86,8 +86,8 @@ class restore_lti_activity_structure_step extends restore_activity_structure_ste
|
||||
|
||||
// Try to decrypt resourcekey and password. Null if not possible (DB default).
|
||||
// Note these fields were originally encrypted on backup using {link @encrypted_final_element}.
|
||||
$data->resourcekey = $this->decrypt($data->resourcekey);
|
||||
$data->password = $this->decrypt($data->password);
|
||||
$data->resourcekey = isset($data->resourcekey) ? $this->decrypt($data->resourcekey) : null;
|
||||
$data->password = isset($data->password) ? $this->decrypt($data->password) : null;
|
||||
|
||||
$newitemid = $DB->insert_record('lti', $data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user