Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38091 fixed bug with SQL query on Oracle

  • Loading branch information...
commit f1cd94b679e3021c7a9f0ed123a6851a9bad6b85 1 parent a09484c
@marinaglancy marinaglancy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/filestorage/file_storage.php
View
4 lib/filestorage/file_storage.php
@@ -1833,8 +1833,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) {
Please sign in to comment.
Something went wrong with that request. Please try again.