Refactor value handling in multiple classes for improved data processing
This commit is contained in:
@@ -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 ] ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user