1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-12-27 19:11:59 +00:00
UOJ-Luogu-RemoteJudge/web/app/libs/uoj-utility-lib.php.patch

14 lines
578 B
Diff

--- UOJ-System/web/app/libs/uoj-utility-lib.php 2022-12-30 09:54:05.452022649 +0800
+++ UOJ-Luogu-RemoteJudge/web/app/libs/uoj-utility-lib.php 2023-03-20 15:17:40.943109445 +0800
@@ -150,7 +150,9 @@
}
function getProblemCustomTestRequirement($problem) {
$extra_config = json_decode($problem['extra_config'], true);
- if (isset($extra_config['custom_test_requirement'])) {
+ if ($problem['type'] != 'local') {
+ return array();
+ } elseif (isset($extra_config['custom_test_requirement'])) {
return $extra_config['custom_test_requirement'];
} else {
$answer = array(