[*] Classes: Db->execute() now return always a boolean. Use Db->query() instead.

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10999 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-06 15:41:34 +00:00
parent bda11e1541
commit f55a9e04b9
17 changed files with 85 additions and 88 deletions
+3 -3
View File
@@ -220,11 +220,11 @@ class HookCore extends ObjectModel
$sql .= '
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`';
$result = $db->executeS($sql, false);
$results = $db->executeS($sql);
self::$_hookModulesCache = array();
if ($result)
while ($row = $db->nextRow())
if ($results)
foreach ($results as $row)
{
$row['hook'] = strtolower($row['hook']);
if (!isset(self::$_hookModulesCache[$row['hook']]))