Fix warnings
This commit is contained in:
parent
10445b1e98
commit
2130587613
@ -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>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -349,7 +349,7 @@ class CompanyBankAccount extends Account
|
||||
$rib = $this->label." : ";
|
||||
}
|
||||
|
||||
$rib .= (string) $this;
|
||||
$rib .= (string) $this->iban;
|
||||
}
|
||||
|
||||
return $rib;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user