From aa6bf6a363501f9836d2bb26a513c2ac3985de83 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 30 Jan 2023 21:43:38 +0800 Subject: [PATCH] fix: 1e775d0d024c4e3d98a31c6074ab31cda15632d8 --- web/app/upgrade/31_problem_resources/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/upgrade/31_problem_resources/upgrade.php b/web/app/upgrade/31_problem_resources/upgrade.php index f4f8c1f..8e4443f 100644 --- a/web/app/upgrade/31_problem_resources/upgrade.php +++ b/web/app/upgrade/31_problem_resources/upgrade.php @@ -6,8 +6,8 @@ return function ($type) { $problems = DB::selectAll("select id from problems"); - foreach ($problems as $id) { - mkdir(UOJContext::storagePath() . "/problem_resources/$id"); + foreach ($problems as $row) { + mkdir(UOJContext::storagePath() . "/problem_resources/{$row['id']}"); } } };