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;