From c89236b2b2dd4b7a2df52f2f3fd4208b1b1a600a Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Tue, 14 Nov 2023 18:28:31 +0100 Subject: [PATCH] Test: Remove Access to Non-Existent Field See: https://mantis.ilias.de/view.php?id=38774 --- Modules/Test/classes/class.ilObjTestAccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Test/classes/class.ilObjTestAccess.php b/Modules/Test/classes/class.ilObjTestAccess.php index 9416774fb743..be9b54eae13f 100644 --- a/Modules/Test/classes/class.ilObjTestAccess.php +++ b/Modules/Test/classes/class.ilObjTestAccess.php @@ -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) );