// Small fix
This commit is contained in:
1 parent
056ced75b5
commit
71c0a483e1
1 file changed
+13
-13
+13
-13
@@ -316,20 +316,20 @@ class HookCore extends ObjectModel
|
|||||||
$sql->orderBy('hm.`position`');
|
$sql->orderBy('hm.`position`');
|
||||||
|
|
||||||
$list = array();
|
$list = array();
|
||||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
if ($result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql))
|
||||||
foreach ($result as $row)
|
foreach ($result as $row)
|
||||||
{
|
{
|
||||||
$row['hook'] = strtolower($row['hook']);
|
$row['hook'] = strtolower($row['hook']);
|
||||||
if (!isset($list[$row['hook']]))
|
if (!isset($list[$row['hook']]))
|
||||||
$list[$row['hook']] = array();
|
$list[$row['hook']] = array();
|
||||||
|
|
||||||
$list[$row['hook']][] = array(
|
$list[$row['hook']][] = array(
|
||||||
'id_hook' => $row['id_hook'],
|
'id_hook' => $row['id_hook'],
|
||||||
'module' => $row['module'],
|
'module' => $row['module'],
|
||||||
'id_module' => $row['id_module'],
|
'id_module' => $row['id_module'],
|
||||||
'live_edit' => $row['live_edit'],
|
'live_edit' => $row['live_edit'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($hook_name != 'displayPayment')
|
if ($hook_name != 'displayPayment')
|
||||||
{
|
{
|
||||||
Cache::store($cache_id, $list);
|
Cache::store($cache_id, $list);
|
||||||
|
|||||||
Reference in new issue
Block a user