Skip to content

Commit

Permalink
MDL-38091 fixed bug with SQL query on Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Feb 23, 2013
1 parent 56d22f1 commit c49adb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filestorage/file_storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1852,8 +1852,8 @@ public function update_references_to_storedfile(stored_file $storedfile) {
$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) {
Expand Down

0 comments on commit c49adb8

Please sign in to comment.