From 710f8b64503bfb36f61d9411154c8a6bb68e0160 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Mon, 6 Jan 2025 10:38:48 +0100 Subject: [PATCH] =?UTF-8?q?Dodanie=20raportowania=20b=C5=82=C4=99d=C3=B3w?= =?UTF-8?q?=20oraz=20poprawa=20formatowania=20kodu=20w=20plikach=20konfigu?= =?UTF-8?q?racyjnych=20i=20obs=C5=82ugi=20przesy=C5=82ania=20obraz=C3=B3w?= =?UTF-8?q?=20produkt=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/grid/config.php | 1 + libraries/plupload/upload-product-images.php | 44 ++++++++++---------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/libraries/grid/config.php b/libraries/grid/config.php index 4cac9da..b6d615b 100644 --- a/libraries/grid/config.php +++ b/libraries/grid/config.php @@ -1,4 +1,5 @@ max( 'pp_shop_products_images', 'o' ); - - $mdb -> insert( 'pp_shop_products_images', [ - 'product_id' => $_POST['product_id'] ? $_POST['product_id'] : null, + + $mdb -> insert( 'pp_shop_products_images', [ + 'product_id' => isset( $_POST['product_id'] ) ? $_POST['product_id'] : null, 'src' => substr( $filePath, 5, strlen( $filePath ) ), 'o' => ++$o ] ); - + $image_id = $mdb -> id(); }