Merge pull request #14164 from ptibogxiv/patch-344

FIX takepos 12 hook
This commit is contained in:
Laurent Destailleur 2020-07-03 00:20:28 +02:00 committed by GitHub
commit d24c6f7a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -932,7 +932,13 @@ if ($resql)
$hookmanager->initHooks(array('takeposfrontend'));
$reshook = $hookmanager->executeHooks('ActionButtons');
if (!empty($reshook)) {
$menus[$r++] = $reshook;
if (is_array($reshook) && !isset($reshook['title'])) {
foreach ($reshook as $reshook) {
$menus[$r++] = $reshook;
}
} else {
$menus[$r++] = $reshook;
}
}
if ($r % 3 == 2) $menus[$r++] = array('title'=>'', 'style'=>'visibility: hidden;');