From 437b24a8b0ab2cc991c927ba0a79e8f9348c9ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Bilo=C3=A9?= Date: Fri, 17 Mar 2017 11:32:26 +0100 Subject: [PATCH] CO: Take PS_CONDITIONS configuration into consideration --- ps_legalcompliance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps_legalcompliance.php b/ps_legalcompliance.php index 52805b4..482aeb0 100644 --- a/ps_legalcompliance.php +++ b/ps_legalcompliance.php @@ -783,7 +783,7 @@ public function hookTermsAndConditions($param) $cms_page_conditions_associated = $cms_role_repository->findOneByName(self::LEGAL_CONDITIONS); $cms_page_revocation_associated = $cms_role_repository->findOneByName(self::LEGAL_REVOCATION); - if ((int) $cms_page_conditions_associated->id_cms > 0 && (int) $cms_page_revocation_associated->id_cms > 0) { + if (Configuration::get('PS_CONDITIONS') && (int) $cms_page_conditions_associated->id_cms > 0 && (int) $cms_page_revocation_associated->id_cms > 0) { $cms_conditions = $cms_repository->i10nFindOneById((int) $cms_page_conditions_associated->id_cms, (int) $this->context->language->id, (int) $this->context->shop->id);