Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-12-04 01:59:47 +01:00
parent 6b0092c30a
commit 040d22ef0a
3 changed files with 3 additions and 3 deletions

View File

@ -920,7 +920,7 @@ if (empty($reshook))
if ($result > 0) { if ($result > 0) {
$ret = $object->fetch($object->id); // Reload to get new records $ret = $object->fetch($object->id); // Reload to get new records
$object->fetch_thirdparty(); $object->fetch_thirdparty();
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
// Define output language // Define output language
$outputlangs = $langs; $outputlangs = $langs;

View File

@ -1492,7 +1492,7 @@ class Form
} }
if ($htmlname != 'none' && !$options_only) { if ($htmlname != 'none' && !$options_only) {
$out .= '<select class="flat'.($moreclass ? ' '.$moreclass : '').'"'.' id="'.$htmlid.'" name="'.$htmlname.(($num || empty($disableifempty)) ? '' : ' disabled').($multiple ? '[]' : '').'" '.($multiple ? 'multiple' : '').' '.(!empty($moreparam) ? $moreparam : '').'>'; $out .= '<select class="flat'.($moreclass ? ' '.$moreclass : '').'" id="'.$htmlid.'" name="'.$htmlname.(($num || empty($disableifempty)) ? '' : ' disabled').($multiple ? '[]' : '').'" '.($multiple ? 'multiple' : '').' '.(!empty($moreparam) ? $moreparam : '').'>';
} }
if (($showempty == 1 || ($showempty == 3 && $num > 1)) && !$multiple) $out .= '<option value="0"'.(in_array(0, $selected) ? ' selected' : '').'>&nbsp;</option>'; if (($showempty == 1 || ($showempty == 3 && $num > 1)) && !$multiple) $out .= '<option value="0"'.(in_array(0, $selected) ? ' selected' : '').'>&nbsp;</option>';

View File

@ -96,7 +96,7 @@ while ($tmp != null)
// Generate the string tp allow a mass update (with a limit of MAXEMAILS per request). // Generate the string tp allow a mass update (with a limit of MAXEMAILS per request).
$emailsin = ''; $emailsin = '';
foreach($groupofemails as $email) { foreach ($groupofemails as $email) {
$emailsin .= ($emailsin ? ", " : "")."'".$db->escape($email)."'"; $emailsin .= ($emailsin ? ", " : "")."'".$db->escape($email)."'";
} }