mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
DML fix
This commit is contained in:
parent
add560f300
commit
b7bad38b37
@ -84,8 +84,8 @@
|
||||
|
||||
/// Get repository instance information
|
||||
$sql = 'SELECT i.name, i.typeid, r.type FROM {repository} r, {repository_instances} i '.
|
||||
'WHERE i.id='.$repo_id.' AND i.typeid=r.id';
|
||||
if (!$repository = $DB->get_record_sql($sql)) {
|
||||
'WHERE i.id=? AND i.typeid=r.id';
|
||||
if (!$repository = $DB->get_record_sql($sql, array($repo_id))) {
|
||||
$err = new stdclass;
|
||||
$err->e = get_string('invalidrepositoryid', 'repository');
|
||||
die(json_encode($err));
|
||||
|
Loading…
x
Reference in New Issue
Block a user