[-] BO : Fix bug #PSCFV-10990 bad version comparison for ps_versions_compliancy

This commit is contained in:
gRoussac committed 2013-11-13 10:14:21 +01:00
1 parent 6ddf220aee
commit c69688cc11
1 file changed
+1 -1
+1 -1
View File
@@ -203,7 +203,7 @@ abstract class ModuleCore
} }
// Check PS version compliancy // 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.'); $this->_errors[] = $this->l('The version of your module is not compliant with your PrestaShop version.');
return false; return false;