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 ""; } // 營業