Skip to content

Commit

Permalink
Merge branch 'wip-MDL-38091-master' of git://github.com/marinaglancy/…
Browse files Browse the repository at this point in the history
…moodle
  • Loading branch information
danpoltawski committed Feb 25, 2013
2 parents dbfe8e2 + 898d497 commit 24ace4b
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 24ace4b

Please sign in to comment.