fix warnings 4
Fixing PHP8 warnings
This commit is contained in:
parent
f9c4ea8f6a
commit
1bd7b4a439
@ -412,18 +412,28 @@ if (!empty($filter_op2) && $filter_op2 != -1) {
|
|||||||
if (!empty($filter_opcloture) && $filter_opcloture != -1) {
|
if (!empty($filter_opcloture) && $filter_opcloture != -1) {
|
||||||
$param .= '&filter_opcloture='.urlencode($filter_opcloture);
|
$param .= '&filter_opcloture='.urlencode($filter_opcloture);
|
||||||
}
|
}
|
||||||
|
//removing PHP warnings
|
||||||
|
$filter_dateouvertureprevue = isset($filter_dateouvertureprevue) ? $filter_dateouvertureprevue : '' ;
|
||||||
if ($filter_dateouvertureprevue != '') {
|
if ($filter_dateouvertureprevue != '') {
|
||||||
$param .= '&opouvertureprevueday='.$opouvertureprevueday.'&opouvertureprevuemonth='.$opouvertureprevuemonth.'&opouvertureprevueyear='.$opouvertureprevueyear;
|
$param .= '&opouvertureprevueday='.$opouvertureprevueday.'&opouvertureprevuemonth='.$opouvertureprevuemonth.'&opouvertureprevueyear='.$opouvertureprevueyear;
|
||||||
}
|
}
|
||||||
|
//removing PHP warnings
|
||||||
|
$filter_date1 = isset($filter_date1) ? $filter_date1 : '';
|
||||||
if ($filter_date1 != '') {
|
if ($filter_date1 != '') {
|
||||||
$param .= '&op1day='.$op1day.'&op1month='.$op1month.'&op1year='.$op1year;
|
$param .= '&op1day='.$op1day.'&op1month='.$op1month.'&op1year='.$op1year;
|
||||||
}
|
}
|
||||||
|
//removing PHP8 warnings
|
||||||
|
$filter_date2 = isset($filter_date2) ? $filter_date2 : '';
|
||||||
if ($filter_date2 != '') {
|
if ($filter_date2 != '') {
|
||||||
$param .= '&op2day='.$op2day.'&op2month='.$op2month.'&op2year='.$op2year;
|
$param .= '&op2day='.$op2day.'&op2month='.$op2month.'&op2year='.$op2year;
|
||||||
}
|
}
|
||||||
|
//removing PHP8 warnings
|
||||||
|
$filter_datecloture = isset($filter_datecloture) ? $filter_datecloture : '';
|
||||||
if ($filter_datecloture != '') {
|
if ($filter_datecloture != '') {
|
||||||
$param .= '&opclotureday='.$op2day.'&opcloturemonth='.$op2month.'&opclotureyear='.$op2year;
|
$param .= '&opclotureday='.$op2day.'&opcloturemonth='.$op2month.'&opclotureyear='.$op2year;
|
||||||
}
|
}
|
||||||
|
//removing PHP8 warnings
|
||||||
|
$optioncss = isset($optioncss) ? $optioncss : '';
|
||||||
if ($optioncss != '') {
|
if ($optioncss != '') {
|
||||||
$param .= '&optioncss='.$optioncss;
|
$param .= '&optioncss='.$optioncss;
|
||||||
}
|
}
|
||||||
@ -467,7 +477,8 @@ if ($mode == "5") {
|
|||||||
|
|
||||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'contract', 0, '', '', $limit);
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'contract', 0, '', '', $limit);
|
||||||
|
|
||||||
if ($sall) {
|
//adding isset to remove PHP8 warnings
|
||||||
|
if (isset($sall)) {
|
||||||
foreach ($fieldstosearchall as $key => $val) {
|
foreach ($fieldstosearchall as $key => $val) {
|
||||||
$fieldstosearchall[$key] = $langs->trans($val);
|
$fieldstosearchall[$key] = $langs->trans($val);
|
||||||
}
|
}
|
||||||
@ -475,6 +486,8 @@ if ($sall) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$morefilter = '';
|
$morefilter = '';
|
||||||
|
//removing PHP8 warnings
|
||||||
|
$moreforfilter = '';
|
||||||
|
|
||||||
// If the user can view categories of products
|
// If the user can view categories of products
|
||||||
if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire)) {
|
if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user