Corrected $reshook check which was incorrect.
This commit is contained in:
parent
2a55c1f2ad
commit
7086b2dab9
@ -2605,11 +2605,10 @@ class Form
|
|||||||
|
|
||||||
$sql = "SELECT ";
|
$sql = "SELECT ";
|
||||||
|
|
||||||
|
|
||||||
// Add select from hooks
|
// Add select from hooks
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$reshook = $hookmanager->executeHooks('selectProductsListSelect', $parameters); // Note that $action and $object may have been modified by hook
|
$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;
|
$sql .= $selectFields.$selectFieldsGrouped.$hookmanager->resPrint;
|
||||||
} else {
|
} else {
|
||||||
$sql .= $hookmanager->resPrint;
|
$sql .= $hookmanager->resPrint;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user