mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix PhanPluginRedundantAssignment
This commit is contained in:
parent
271525deaa
commit
6d6cbff08e
|
|
@ -2813,7 +2813,7 @@ class Form
|
|||
|
||||
$sql .= " FROM ".$this->db->prefix()."product as p";
|
||||
// Add from (left join) from hooks
|
||||
$parameters = array();
|
||||
$parameters = array(); // @phan-suppress-current-line PhanPluginRedundantAssignment
|
||||
$reshook = $hookmanager->executeHooks('selectProductsListFrom', $parameters); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
|
||||
|
|
@ -2883,7 +2883,7 @@ class Form
|
|||
$sql .= " AND p.fk_product_type = 0";
|
||||
}
|
||||
// Add where from hooks
|
||||
$parameters = array();
|
||||
$parameters = array(); // @phan-suppress-current-line PhanPluginRedundantAssignment
|
||||
$reshook = $hookmanager->executeHooks('selectProductsListWhere', $parameters); // Note that $action and $object may have been modified by hook
|
||||
$sql .= $hookmanager->resPrint;
|
||||
// Add criteria on ref/label
|
||||
|
|
@ -7843,7 +7843,6 @@ class Form
|
|||
|
||||
if (!empty($conf->use_javascript_ajax) && getDolGlobalString('TICKET_USE_SEARCH_TO_SELECT')) {
|
||||
$placeholder = '';
|
||||
$urloption = '';
|
||||
|
||||
if ($selected && empty($selected_input_value)) {
|
||||
require_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
|
||||
|
|
@ -9492,7 +9491,7 @@ class Form
|
|||
</dd>
|
||||
</dl>';
|
||||
} else {
|
||||
$linktoelem = '';
|
||||
$linktoelem = ''; // @phan-suppress-current-line PhanPluginRedundantAssignment
|
||||
}
|
||||
|
||||
if (!empty($conf->use_javascript_ajax)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user