fix warnings in task list

This commit is contained in:
Frédéric FRANCE 2021-10-24 14:00:05 +02:00
parent 3765a89283
commit 5ef5075f8f
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -69,9 +69,10 @@ $search_task_budget_amount = GETPOST('search_task_budget_amount');
$search_societe = GETPOST('search_societe');
$search_opp_status = GETPOST("search_opp_status", 'alpha');
$mine = (GETPOSTISSET('mode') && GETPOST('mode', 'alpha') == 'mine') ? 1 : 0;
$mine = GETPOST('mode', 'alpha') == 'mine' ? 1 : 0;
if ($mine) {
$search_task_user = $user->id; $mine = 0;
$search_task_user = $user->id;
$mine = 0;
}
$search_date_startday = GETPOST('search_date_startday', 'int');
@ -882,11 +883,11 @@ $totalarray['totalbudgetamount'] = 0;
$totalarray['totaltobill'] = 0;
$totalarray['totalbilled'] = 0;
$parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder,
'totalarray' => $totalarray,
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray,
);
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;