MDL-42804 Database - SQL keywords should be uppercase.

This commit is contained in:
Damyon Wiese 2013-11-12 12:04:11 +08:00
parent 94738ee7d6
commit 93e55a8bf9

View File

@ -375,7 +375,7 @@
$dbparams = array($delete);
if ($deleterecord = $DB->get_record_sql("SELECT dr.*, $allnamefields
FROM {data_records} dr
JOIN {user} u on dr.userid = u.id
JOIN {user} u ON dr.userid = u.id
WHERE dr.id = ?", $dbparams, MUST_EXIST)) { // Need to check this is valid.
if ($deleterecord->dataid == $data->id) { // Must be from this database
$deletebutton = new single_button(new moodle_url('/mod/data/view.php?d='.$data->id.'&delete='.$delete.'&confirm=1'), get_string('delete'), 'post');