From e390031c833518b6c4d474d6ec1cd55379d2117f Mon Sep 17 00:00:00 2001 From: fSerny Date: Fri, 16 Dec 2011 10:57:50 +0000 Subject: [PATCH] // 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 --- classes/Module.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Module.php b/classes/Module.php index 2d6affa34..68ba13ef3 100644 --- a/classes/Module.php +++ b/classes/Module.php @@ -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;