From 453ff4aa66e9461f57906f3069618af7617c867c Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 7 Jun 2021 14:19:06 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/lib/pdf.lib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index d420c20796e..b6a831d0b58 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -2160,7 +2160,7 @@ function pdf_getLinkedObjects(&$object, $outputlangs) $object->note_public .= dol_print_date($elementobject->date, 'day', '', $outputlangs); $object->note_public .= '
'; } - } else if(count($objects) == 1) { + } elseif(count($objects) == 1) { $elementobject = array_shift($objects); $linkedobjects[$objecttype]['ref_title'] = $outputlangs->transnoentities("RefOrder"); $linkedobjects[$objecttype]['ref_value'] = $outputlangs->transnoentities($elementobject->ref).($elementobject->ref_client ? ' ('.$elementobject->ref_client.')' : '').($elementobject->ref_supplier ? ' ('.$elementobject->ref_supplier.')' : ''); @@ -2195,7 +2195,6 @@ function pdf_getLinkedObjects(&$object, $outputlangs) $outputlangs->loadLangs(array("orders", "sendings")); if(count($objects) > 1) { - $order = null; if(empty($object->linkedObjects['commande']) && $object->element != 'commande') $object->note_public .= '
'.$outputlangs->transnoentities("RefOrder").' / '.$outputlangs->transnoentities("RefSending").' :
'; else $object->note_public .= '
'.$outputlangs->transnoentities("RefSending").' :
'; @@ -2215,20 +2214,18 @@ function pdf_getLinkedObjects(&$object, $outputlangs) } if(! is_object($order)) { - $object->note_public .= $outputlangs->transnoentities($elementobject->ref); $object->note_public .= '
'; } else { - $object->note_public .= $outputlangs->convToOutputCharset($order->ref).($order->ref_client ? ' ('.$order->ref_client.')' : ''); $object->note_public .= ' / '.$outputlangs->transnoentities($elementobject->ref); $object->note_public .= '
'; } } } - else if(count($objects) == 1) { + elseif(count($objects) == 1) { $elementobject = array_shift($objects); $order = null; // We concat this record info into fields xxx_value. title is overwrote.