Fix warning

This commit is contained in:
Laurent Destailleur 2022-12-31 13:47:09 +01:00
parent 8774f4f092
commit 3ca8e8c493
3 changed files with 4 additions and 2 deletions

View File

@ -1830,7 +1830,7 @@ if ($action == 'create') {
}
print '<tr class="field_shipping_method_id"><td class="titlefieldcreate">'.$langs->trans('SendingMethod').'</td><td class="valuefieldcreate">';
print img_picto('', 'object_dollyrevert', 'class="pictofixedwidth"');
print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
print '</td></tr>';
}

View File

@ -1833,7 +1833,8 @@ if ($action == 'create' && $usercancreate) {
// Shipping Method
if (isModEnabled('expedition')) {
print '<tr><td>'.$langs->trans('SendingMethod').'</td><td>';
print img_picto('', 'object_dolly', 'class="pictofixedwidth"').$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
print img_picto('', 'object_dolly', 'class="pictofixedwidth"');
$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
print '</td></tr>';
}

View File

@ -69,5 +69,6 @@ exclude:
- name: PhpCoveredCharacterInClassInspection
- name: PhpSameParameterValueInspection
- name: PhpConditionCheckedByNextConditionInspection
- name: RegExpSingleCharAlternation
- name: PhpSuspiciousNameCombinationInspection