Skip to content

Commit

Permalink
Merge pull request #30 from eikona-media/hotfix/multiple-hooks
Browse files Browse the repository at this point in the history
Allow multiple hooks of type styleManagerFindByTable
  • Loading branch information
doishub authored Jun 14, 2020
2 parents 6f1c977 + d4dc6c3 commit 0a150c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/contao/models/StyleManagerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ public static function findByTable($strTable, array $arrOptions=array())
{
foreach ($GLOBALS['TL_HOOKS']['styleManagerFindByTable'] as $callback)
{
return \System::importStatic($callback[0])->{$callback[1]}($strTable, $arrOptions);
if (null !== ($result = \Contao\System::importStatic($callback[0])->{$callback[1]}($strTable, $arrOptions)))
{
return $result;
}
}
}

Expand Down

0 comments on commit 0a150c9

Please sign in to comment.