Refactor value handling in multiple classes for improved data processing

This commit is contained in:
2024-10-30 09:38:37 +01:00
parent 9e05750801
commit ee240f7dbd
25 changed files with 364 additions and 25 deletions

View File

@@ -1014,7 +1014,7 @@ class ShopProduct
else
$new_seo_link = \S::seo( 'p-' . $product_id . '-' . $name[$key] );
if ( $new_seo_link !== $current_seo_link )
if ( $new_seo_link !== $current_seo_link and $current_seo_link != '' )
{
if ( !$mdb -> count( 'pp_redirects', [ 'from' => $current_seo_link, 'to' => $new_seo_link, 'lang_id' => $key, 'product_id' => $product_id ] ) )
{