diff --git a/classes/Category.php b/classes/Category.php index ac211811c..1c63ff592 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -684,8 +684,7 @@ class CategoryCore extends ObjectModel else return new Category($shop->getCategory(), $id_lang); $is_more_than_one_root_category = count(Category::getCategoriesWithoutParent()) > 1; - if ((!Shop::isFeatureActive() && $is_more_than_one_root_category) || - Shop::isFeatureActive() && $is_more_than_one_root_category && Shop::getContext() != Shop::CONTEXT_SHOP) + if (Shop::isFeatureActive() && $is_more_than_one_root_category && Shop::getContext() != Shop::CONTEXT_SHOP) $category = Category::getTopCategory($id_lang); else $category = new Category($shop->getCategory(), $id_lang);