From 4429c14ab23eb59103a0d17b67e2fc64d16a4995 Mon Sep 17 00:00:00 2001 From: songliang Date: Wed, 5 Jul 2023 12:52:39 +0800 Subject: [PATCH] ... --- webapp/controller/MarketController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 8fc8a6e8..a4529f9d 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -1877,7 +1877,10 @@ class MarketController extends BaseAuthedController 'status' => 0, ) ); - if ($row['item_id'] == null) { + if (!$row) { + return null; + } + if (!$row['item_id']) { return null; } return $row;