Usunięcie nieużywanych plików konfiguracyjnych i CSS z menedżera plików oraz uproszczenie przetwarzania wartości w klasach ShopProduct, Settings, Users, ShopPromotion, ShopCoupon, ShopProductSets i Dictionaries.

This commit is contained in:
2024-11-01 00:12:03 +01:00
parent 8d5dadc0be
commit 7faadb69e2
321 changed files with 251 additions and 44985 deletions

View File

@@ -1108,11 +1108,12 @@ class ShopProduct
{
$order = self::max_order() + 1;
$mdb -> insert('pp_shop_products_categories', [
'product_id' => (int) $product_id,
'category_id' => (int) $category,
'o' => (int) $order,
]);
if ( $product_id and $category )
$mdb -> insert( 'pp_shop_products_categories', [
'product_id' => (int)$product_id,
'category_id' => (int)$category,
'o' => (int) $order,
] );
}
}