Commit f70bda97 authored by Robert Lyon's avatar Robert Lyon
Browse files

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



We need to make it "key" = ?

behatnotneeded

Change-Id: Ib9da4bb82e32cf1ba02079cd7d62236bf2fc3b94
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 750197ba
......@@ -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'));
redirect(get_config('wwwroot'));
}
......
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