From b81d826f8824280ee63ffb500ea8559fc92c0950 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Wed, 27 Oct 2021 17:00:46 +0200 Subject: [PATCH] Fix travis --- htdocs/takepos/index.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index dede65df2d6..8f93dfca0bb 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -1122,25 +1122,25 @@ if ($resql) { $hookmanager->initHooks(array('takeposfrontend')); $parameters = array('menus'=>$menus); -$reshook = $hookmanager->executeHooks('ActionButtons',$parameters); +$reshook = $hookmanager->executeHooks('ActionButtons', $parameters); if ($reshook == 0) { //add buttons - if (is_array($hookmanager->resArray) ) { - foreach ($hookmanager->resArray as $resArray) { - foreach ($resArray as $butmenu) { - $menus[$r++] = $butmenu; - } - } - } - elseif ($reshook == 1){ - $r = 0; //replace buttons - if (is_array($hookmanager->resArray) ) { - foreach ($hookmanager->resArray as $resArray) { - foreach ($resArray as $butmenu) { - $menus[$r++] = $butmenu; - } - } - } - } + if (is_array($hookmanager->resArray) ) { + foreach ($hookmanager->resArray as $resArray) { + foreach ($resArray as $butmenu) { + $menus[$r++] = $butmenu; + } + } + } + elseif ($reshook == 1) { + $r = 0; //replace buttons + if (is_array($hookmanager->resArray) ) { + foreach ($hookmanager->resArray as $resArray) { + foreach ($resArray as $butmenu) { + $menus[$r++] = $butmenu; + } + } + } + } } if ($r % 3 == 2) {