Corrected $reshook check which was incorrect.
This commit is contained in:
parent
2a55c1f2ad
commit
7086b2dab9
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user