// Adding an error message in class Module

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11300 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2011-12-16 10:57:50 +00:00
parent 2ab9ff175d
commit e390031c83

View File

@@ -242,7 +242,10 @@ abstract class ModuleCore
{
// Check module installation id validation
if (!Validate::isUnsignedId($this->id))
{
$this->_errors[] = $this->l('The module is not installed.');
return false;
}
// Retrieve hooks used by the module
$sql = 'SELECT `id_hook` FROM `'._DB_PREFIX_.'hook_module` WHERE `id_module` = '.(int)$this->id;