From c01de935dc132a2f94a32141f44ad8b31c8a2206 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Wed, 8 Feb 2012 10:15:12 +0000 Subject: [PATCH] // fix a false positive issue in upgrade process (thanks again to Vincent Grimaud) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13112 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/upgrade/php/remove_module_from_hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dev/upgrade/php/remove_module_from_hook.php b/install-dev/upgrade/php/remove_module_from_hook.php index cfc67e9fc..4490b492e 100644 --- a/install-dev/upgrade/php/remove_module_from_hook.php +++ b/install-dev/upgrade/php/remove_module_from_hook.php @@ -27,7 +27,7 @@ function remove_module_from_hook($module_name, $hook_name) { - $result = false; + $result = true; $id_module = Db::getInstance()->getValue(' 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) { - $result = Db::getInstance()->execute(' + $result &= Db::getInstance()->execute(' DELETE FROM `'._DB_PREFIX_.'hook_module` WHERE `id_module` = '.(int)$id_module.' AND `id_hook` = '.(int)$id_hook); }