Skip to content

Commit

Permalink
Improvements to satisfy code checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 24, 2024
1 parent c73a579 commit a675f82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/responsetype/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function get_results_tags($weights, $participants, $respondents, $showtot
$file = $fs->get_file_by_id($row->fileid);

if ($file) {
// There is a file.
// There is a file.
$imageurl = moodle_url::make_pluginfile_url(
$file->get_contextid(),
$file->get_component(),
Expand Down
2 changes: 1 addition & 1 deletion db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ function xmldb_questionnaire_upgrade($oldversion=0) {
}

if ($oldversion < 2023101501) {
// Upgrade files.itemid with questionnaire_response_file.id
// Upgrade files.itemid with questionnaire_response_file.id.
$filesresponses = $DB->get_records('questionnaire_response_file', [], '', 'id,fileid');
$idmap = [];
foreach ($filesresponses as $fileresponse) {
Expand Down

0 comments on commit a675f82

Please sign in to comment.