From 76d4a8766659a22c3b9458b0f2dec0ba1abc30b1 Mon Sep 17 00:00:00 2001 From: Mohamed DAOUD Date: Thu, 28 Nov 2024 12:00:36 +0100 Subject: [PATCH] Fix hook doAddButton (#32116) Co-authored-by: Laurent Destailleur --- htdocs/public/payment/newpayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 275b4f6bb27d8..d901413cf1723 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -2166,7 +2166,7 @@ $reshook = $hookmanager->executeHooks('doAddButton', $parameters, $object, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); - } elseif ($reshook > 0) { + } elseif ($reshook >= 0) { print $hookmanager->resPrint; }