Fix travis

This commit is contained in:
andreubisquerra 2021-10-27 17:00:46 +02:00 committed by GitHub
parent fddff4d1ca
commit b81d826f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1122,7 +1122,7 @@ if ($resql) {
$hookmanager->initHooks(array('takeposfrontend')); $hookmanager->initHooks(array('takeposfrontend'));
$parameters = array('menus'=>$menus); $parameters = array('menus'=>$menus);
$reshook = $hookmanager->executeHooks('ActionButtons',$parameters); $reshook = $hookmanager->executeHooks('ActionButtons', $parameters);
if ($reshook == 0) { //add buttons if ($reshook == 0) { //add buttons
if (is_array($hookmanager->resArray) ) { if (is_array($hookmanager->resArray) ) {
foreach ($hookmanager->resArray as $resArray) { foreach ($hookmanager->resArray as $resArray) {
@ -1131,7 +1131,7 @@ if ($reshook == 0) { //add buttons
} }
} }
} }
elseif ($reshook == 1){ elseif ($reshook == 1) {
$r = 0; //replace buttons $r = 0; //replace buttons
if (is_array($hookmanager->resArray) ) { if (is_array($hookmanager->resArray) ) {
foreach ($hookmanager->resArray as $resArray) { foreach ($hookmanager->resArray as $resArray) {