Skip to content

Commit

Permalink
Merge branch 'MDL-61413' of git://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Feb 12, 2018
2 parents 315a0a3 + 7fcc62c commit d461d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/lti/backup/moodle2/restore_lti_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ protected function find_existing_lti_type($data) {
// LTI2 is not possible in the course so we add "lt.toolproxyid IS NULL" to the query.
$sql = 'SELECT id
FROM {lti_types}
WHERE baseurl = :baseurl AND course = :course AND name = :name AND toolproxyid IS NULL';
WHERE ' . $DB->sql_compare_text('baseurl', 255) . ' = ' . $DB->sql_compare_text(':baseurl', 255) . ' AND
course = :course AND name = :name AND toolproxyid IS NULL';
if ($ltitype = $DB->get_record_sql($sql, $params, IGNORE_MULTIPLE)) {
$this->set_mapping('ltitype', $data->id, $ltitype->id);
return $ltitype->id;
Expand Down

0 comments on commit d461d09

Please sign in to comment.