Fix a thing

This commit is contained in:
Skylar Ittner 2017-06-13 02:21:16 -06:00
parent f18680c020
commit 3758078b2d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ switch ($VARS['action']) {
if ($database->has("scrambled_answers", ["AND" => ["sid" => $sid, "acode" => $VARS['answer_id']]])) {
// Image maybe correct
$image = true;
} else if ($database->has("sessions", ["[>]access_answers" => ["acqid" => "acqid"]], ["AND" => ["sid" => $sid, "OR" => ["acatext" => $VARS['answer_id'], "acahash" => hash('md5', $VARS['answer_id'])]]])) {
} else if ($database->has("sessions", ["[>]access_answers" => ["acqid" => "acqid"]], ["AND" => ["sid" => $sid, "OR" => ["acatext" => strtolower($VARS['answer_id']), "acahash" => hash('md5', strtolower($VARS['answer_id']))]]])) {
// Accessible text correct
$image = false;
} else {