Fixing style errors.

This commit is contained in:
stickler-ci 2021-02-11 10:35:15 +00:00
parent a1356718c0
commit 84e17753eb
2 changed files with 6 additions and 7 deletions

View File

@ -1376,15 +1376,15 @@ if ($resql)
if (!empty($arrayfields['bu.label']['checked'])) if (!empty($arrayfields['bu.label']['checked']))
{ {
//payment line type to define user display //payment line type to define user display
foreach($links as $key=>$value){ foreach ($links as $key=>$value){
if($links[$key]['type'] == 'payment_sc') $type_link = 'payment_sc'; if ($links[$key]['type'] == 'payment_sc') $type_link = 'payment_sc';
if($links[$key]['type'] == 'payment_salary') $type_link = 'payment_salary'; if ($links[$key]['type'] == 'payment_salary') $type_link = 'payment_salary';
} }
print '<td class="tdoverflowmax150">'; print '<td class="tdoverflowmax150">';
if ($objp->url_id) if ($objp->url_id)
{ {
if($objp->type_url == 'company') { if ($objp->type_url == 'company') {
$companystatic->id = $objp->url_id; $companystatic->id = $objp->url_id;
$companystatic->name = $objp->nom; $companystatic->name = $objp->nom;
$companystatic->name_alias = $objp->name_alias; $companystatic->name_alias = $objp->name_alias;
@ -1408,8 +1408,7 @@ if ($resql)
print $userstatic->getNomUrl(1); print $userstatic->getNomUrl(1);
} }
} }
else else {
{
print '&nbsp;'; print '&nbsp;';
} }
print '</td>'; print '</td>';

View File

@ -568,7 +568,7 @@ class PaymentSocialContribution extends CommonObject
$result = $acc->add_url_line($bank_line_id, $socialcontrib->id, DOL_URL_ROOT.'/compta/charges.php?id=', $socialcontrib->type_label.(($socialcontrib->lib && $socialcontrib->lib != $socialcontrib->type_label) ? ' ('.$socialcontrib->lib.')' : ''), 'sc'); $result = $acc->add_url_line($bank_line_id, $socialcontrib->id, DOL_URL_ROOT.'/compta/charges.php?id=', $socialcontrib->type_label.(($socialcontrib->lib && $socialcontrib->lib != $socialcontrib->type_label) ? ' ('.$socialcontrib->lib.')' : ''), 'sc');
if ($result <= 0) dol_print_error($this->db); if ($result <= 0) dol_print_error($this->db);
if($socialcontrib->fk_user) { if ($socialcontrib->fk_user) {
$fuser = new User($this->db); $fuser = new User($this->db);
$fuser->fetch($socialcontrib->fk_user); $fuser->fetch($socialcontrib->fk_user);