FIX Warning php8
This commit is contained in:
parent
dcf7ce4cfc
commit
d4db4480d7
@ -71,9 +71,9 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
|
||||
print '<td class="linkedcol-ref left">'.$objectlink->ref_client.'</td>';
|
||||
print '<td class="linkedcol-date center">'.dol_print_date($objectlink->date, 'day').'</td>';
|
||||
print '<td class="linkedcol-amount right">';
|
||||
if ($user->rights->facture->lire) {
|
||||
if (!empty($objectlink) && $objectlink->element == 'facture' && $user->hasRight('facture', 'lire')) {
|
||||
$sign = 1;
|
||||
if ($object->type == Facture::TYPE_CREDIT_NOTE) {
|
||||
if ($objectlink->type == Facture::TYPE_CREDIT_NOTE) {
|
||||
$sign = -1;
|
||||
}
|
||||
if ($objectlink->statut != 3) {
|
||||
|
||||
@ -217,7 +217,7 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
||||
{
|
||||
global $langs;
|
||||
|
||||
$s .= '<select id="filter_services_expired" name="filter" class="flat">';
|
||||
$s = '<select id="filter_services_expired" name="filter" class="flat">';
|
||||
if (count($this->arrayofproducts)) {
|
||||
$s .= '<option value="-1">'.$langs->trans("ProductOrService").'</option>';
|
||||
} else {
|
||||
@ -228,6 +228,7 @@ class mailing_thirdparties_services_expired extends MailingTargets
|
||||
}
|
||||
$s .= '</select>';
|
||||
$s .= ajax_combobox("filter_services_expired");
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user