diff --git a/classes/module/Module.php b/classes/module/Module.php index f6e3c6473..65f0b07c5 100644 --- a/classes/module/Module.php +++ b/classes/module/Module.php @@ -203,7 +203,7 @@ abstract class ModuleCore } // Check PS version compliancy - if (version_compare(_PS_VERSION_, $this->ps_versions_compliancy['min']) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy['max']) >= 0) + if (version_compare(_PS_VERSION_, $this->ps_versions_compliancy['min']) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy['max']) > 0) { $this->_errors[] = $this->l('The version of your module is not compliant with your PrestaShop version.'); return false; diff --git a/themes/default/contact-form.tpl b/themes/default/contact-form.tpl index 682989d7f..6fb91cf25 100644 --- a/themes/default/contact-form.tpl +++ b/themes/default/contact-form.tpl @@ -88,7 +88,7 @@ {/foreach} - {elseif !isset($customerThread.id_order) && !isset($isLogged)} + {elseif !isset($customerThread.id_order) && empty($isLogged)} {elseif $customerThread.id_order|intval > 0}