Fix warnings

This commit is contained in:
Laurent Destailleur 2022-12-30 15:14:01 +01:00
parent 10445b1e98
commit 2130587613
3 changed files with 5 additions and 4 deletions

View File

@ -4203,7 +4203,7 @@ class Form
if ($deposit_percent >= 0) {
$out .= ' <span id="'.$htmlname.'_deposit_percent_container"' . (empty($selectedDepositPercent) ? ' style="display: none"' : '') . '>';
$out .= $langs->trans('DepositPercent') . ' : ';
$out .= '<input id="'.$htmlname.'_deposit_percent" name="'.$htmlname.'_deposit_percent" class="maxwidth50" value="' . strval($deposit_percent) . '" />';
$out .= '<input id="'.$htmlname.'_deposit_percent" name="'.$htmlname.'_deposit_percent" class="maxwidth50" value="' . $deposit_percent . '" />';
$out .= '</span>';
$out .= '
<script>

View File

@ -3025,13 +3025,14 @@ class EmailCollector extends CommonObject
* Check if the same file name already exists in the upload folder,
* append increment number to the original filename
*/
while (file_exists($destdir."/" . $file_name . "." . $extension)) {
$file_name = (string) $file_name_original . ' (' . $num . ')';
while (file_exists($destdir."/".$file_name.".".$extension)) {
$file_name = $file_name_original . ' (' . $num . ')';
$file_name_complete = $file_name . "." . $extension;
$destination = $destdir.'/'.$file_name_complete;
$num++;
}
$destination = dol_sanitizePathName($destination);
file_put_contents($destination, $data);
}

View File

@ -349,7 +349,7 @@ class CompanyBankAccount extends Account
$rib = $this->label." : ";
}
$rib .= (string) $this;
$rib .= (string) $this->iban;
}
return $rib;