diff --git a/src/Eccube/Controller/Admin/Product/ProductController.php b/src/Eccube/Controller/Admin/Product/ProductController.php index d650a67cf3c..091a456dc6c 100644 --- a/src/Eccube/Controller/Admin/Product/ProductController.php +++ b/src/Eccube/Controller/Admin/Product/ProductController.php @@ -631,8 +631,7 @@ public function edit(Request $request, RouterInterface $router, CacheUtil $cache $this->entityManager->flush(); - if (array_key_exists('product_image', $request->request->get('admin_product'))) { - $product_image = $request->request->get('admin_product')['product_image']; + if ($product_image = $request->request->all()['admin_product']['product_image'] ?? []) { foreach ($product_image as $sortNo => $filename) { $ProductImage = $this->productImageRepository ->findOneBy([