// Some fix on objectModel children classes (fields not valid, etc.)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9985 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-11-09 12:16:37 +00:00
parent 6694cf0a20
commit 14c94558a6
13 changed files with 121 additions and 102 deletions
+1 -1
View File
@@ -989,7 +989,7 @@ abstract class ModuleCore
$sql = 'SELECT id_module, id_shop
FROM '._DB_PREFIX_.'hook_module
WHERE id_hook = '.(int)$id_hook.'
'.((!is_null($shopList)) ? ' AND id_shop IN('.implode(', ', $shopList).')' : '').'
'.((!is_null($shopList) && $shopList) ? ' AND id_shop IN('.implode(', ', $shopList).')' : '').'
ORDER BY position';
$results = Db::getInstance()->executeS($sql);
$position = array();