diff --git a/app/common/controller/UsedCarController.php b/app/common/controller/UsedCarController.php index 8831601..b0b1df0 100644 --- a/app/common/controller/UsedCarController.php +++ b/app/common/controller/UsedCarController.php @@ -70,6 +70,8 @@ class UsedCarController extends BaseController } $data['images_pull'] = $images_pull; + }else{ + $data['images_pull'] = []; } if (!empty($data['attachment'])){ //$attachments = explode(',', $data['attachment']); @@ -84,7 +86,10 @@ class UsedCarController extends BaseController } $data['attachment_pull'] = $attachment_pull; + }else{ + $data['attachment_pull'] = []; } + return $data; }