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) );