Corrected $reshook check which was incorrect.

This commit is contained in:
mgabriel 2023-03-21 08:59:39 +01:00
parent 2a55c1f2ad
commit 7086b2dab9

View File

@ -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;