From 7086b2dab9f98f35b97c858b35067d7421cc3184 Mon Sep 17 00:00:00 2001 From: mgabriel Date: Tue, 21 Mar 2023 08:59:39 +0100 Subject: [PATCH] Corrected $reshook check which was incorrect. --- htdocs/core/class/html.form.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 322337b30f5..b1fd401f277 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2605,11 +2605,10 @@ class Form $sql = "SELECT "; - // Add select from hooks $parameters = array(); $reshook = $hookmanager->executeHooks('selectProductsListSelect', $parameters); // Note that $action and $object may have been modified by hook - if ($reshook > 0) { + if (empty($reshook)) { $sql .= $selectFields.$selectFieldsGrouped.$hookmanager->resPrint; } else { $sql .= $hookmanager->resPrint;