@ -68,8 +68,10 @@ class Recovery extends Controller
public function add(): Json
{
$imageIds = $this->request->post('image_ids');
if (!is_array($imageIds)) {
if ($imageIds && !is_array($imageIds)) {
$imageIds = explode(',', $imageIds);
} else {
$imageIds = [];
}
$shop_id = intval($this->request->post('shop_id'));
if (!$shop_id) {