MDL-38091 fixed bug with SQL query on Oracle

This commit is contained in:
Marina Glancy
2013-02-23 12:22:21 +11:00
parent 56d22f190e
commit c49adb8e18
+2 -2
View File
@@ -1852,8 +1852,8 @@ class file_storage {
$referencehash = sha1($reference);
$sql = "SELECT repositoryid, id FROM {files_reference}
WHERE referencehash = ? and reference = ?";
$rs = $DB->get_recordset_sql($sql, array($referencehash, $reference));
WHERE referencehash = ?";
$rs = $DB->get_recordset_sql($sql, array($referencehash));
$now = time();
foreach ($rs as $record) {