From 6b9cfc3e9758d6b5441e78e60dbef1feed601ed0 Mon Sep 17 00:00:00 2001 From: "gary_chen\\gary_chen" Date: Mon, 20 Nov 2023 10:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8B=99=E5=8A=A9=E7=90=86=E7=99=BC?= =?UTF-8?q?=E5=8C=85=E5=90=88=E7=B4=84=E4=B8=8A=E5=82=B3=20bug=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/wipwhole-rec-invoice-edit-fileupload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wms/wipwhole-rec-invoice-edit-fileupload.php b/wms/wipwhole-rec-invoice-edit-fileupload.php index 933d44f1..98acc091 100644 --- a/wms/wipwhole-rec-invoice-edit-fileupload.php +++ b/wms/wipwhole-rec-invoice-edit-fileupload.php @@ -39,7 +39,9 @@ function fileIUploads($post_name) } } } - return json_encode($file_arr, JSON_UNESCAPED_UNICODE); + if (count($file_arr) !== 0) + return json_encode($file_arr, JSON_UNESCAPED_UNICODE); + return ""; } // 營業