// 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:
1 parent
2ab9ff175d
commit
e390031c83
1 file changed
+3
@@ -242,7 +242,10 @@ abstract class ModuleCore
|
|||||||
{
|
{
|
||||||
// Check module installation id validation
|
// Check module installation id validation
|
||||||
if (!Validate::isUnsignedId($this->id))
|
if (!Validate::isUnsignedId($this->id))
|
||||||
|
{
|
||||||
|
$this->_errors[] = $this->l('The module is not installed.');
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Retrieve hooks used by the module
|
// Retrieve hooks used by the module
|
||||||
$sql = 'SELECT `id_hook` FROM `'._DB_PREFIX_.'hook_module` WHERE `id_module` = '.(int)$this->id;
|
$sql = 'SELECT `id_hook` FROM `'._DB_PREFIX_.'hook_module` WHERE `id_module` = '.(int)$this->id;
|
||||||
|
|||||||
Reference in new issue
Block a user