// fix a false positive issue in upgrade process (thanks again to Vincent Grimaud)
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
function remove_module_from_hook($module_name, $hook_name)
|
function remove_module_from_hook($module_name, $hook_name)
|
||||||
{
|
{
|
||||||
$result = false;
|
$result = true;
|
||||||
|
|
||||||
$id_module = Db::getInstance()->getValue('
|
$id_module = Db::getInstance()->getValue('
|
||||||
SELECT `id_module` FROM `'._DB_PREFIX_.'module`
|
SELECT `id_module` FROM `'._DB_PREFIX_.'module`
|
||||||
@@ -42,7 +42,7 @@ function remove_module_from_hook($module_name, $hook_name)
|
|||||||
|
|
||||||
if ((int)$id_hook > 0)
|
if ((int)$id_hook > 0)
|
||||||
{
|
{
|
||||||
$result = Db::getInstance()->execute('
|
$result &= Db::getInstance()->execute('
|
||||||
DELETE FROM `'._DB_PREFIX_.'hook_module`
|
DELETE FROM `'._DB_PREFIX_.'hook_module`
|
||||||
WHERE `id_module` = '.(int)$id_module.' AND `id_hook` = '.(int)$id_hook);
|
WHERE `id_module` = '.(int)$id_module.' AND `id_hook` = '.(int)$id_hook);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user