// 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user