This commit is contained in:
skodak 2009-03-28 22:18:53 +00:00
parent add560f300
commit b7bad38b37

View File

@ -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));