Fix hook not visible when using old syntax

This commit is contained in:
Laurent Destailleur 2017-10-27 10:05:21 +02:00
parent e31223d7be
commit 1adfc02724

View File

@ -512,10 +512,10 @@ if ($mode == 'feature')
$i=0; $i=0;
foreach($objMod->module_parts['hooks'] as $key => $val) foreach($objMod->module_parts['hooks'] as $key => $val)
{ {
if ($key == 'entity') continue; if ($key === 'entity') continue;
// For special values // For special values
if ($key == 'data') if ($key === 'data')
{ {
if (is_array($val)) if (is_array($val))
{ {