Commit 7f80c859 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1634702: Need to respect the sql keyword 'key' in MySQL"

parents eb757422 f70bda97
......@@ -26,7 +26,7 @@ $row = get_record('artefact_internal_profile_email', 'email', $email, 'key', $ke
if ($row) {
if ($decline) {
delete_records_select('artefact_internal_profile_email', 'verified=0 AND key=? AND email=?', array($key, $email));
delete_records_select('artefact_internal_profile_email', 'verified = 0 AND "key" = ? AND email = ?', array($key, $email));
$SESSION->add_ok_msg(get_string('emailactivationdeclined', 'artefact.internal'));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment