mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-36580' of https://github.com/stronk7/moodle
This commit is contained in:
commit
8ef00034f5
@ -89,8 +89,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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user