Skip to content

Commit

Permalink
Test: Remove Access to Non-Existent Field
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Nov 14, 2023
1 parent e2a664d commit c89236b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Test/classes/class.ilObjTestAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static function isFailed($user_id, $a_obj_id): bool

if (!$result->numRows()) {
$result = $ilDB->queryF(
"SELECT tst_pass_result.*, tst_tests.pass_scoring, tst_tests.random_test, tst_tests.test_id FROM tst_pass_result, tst_active, tst_tests WHERE tst_active.test_fi = tst_tests.test_id AND tst_active.user_fi = %s AND tst_tests.obj_fi = %s AND tst_pass_result.active_fi = tst_active.active_id ORDER BY tst_pass_result.pass",
"SELECT tst_pass_result.*, tst_tests.pass_scoring FROM tst_pass_result, tst_active, tst_tests WHERE tst_active.test_fi = tst_tests.test_id AND tst_active.user_fi = %s AND tst_tests.obj_fi = %s AND tst_pass_result.active_fi = tst_active.active_id ORDER BY tst_pass_result.pass",
array('integer','integer'),
array($user_id, $a_obj_id)
);
Expand Down

0 comments on commit c89236b

Please sign in to comment.