// Adding an error message in class Module

This commit is contained in:
fSerny
2011-12-16 10:57:50 +00:00
parent c2463565ae
commit f61d6f4e8d

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;