Merge pull request #9113 from torvista/export-import

Fix for Warning: A non-numeric value encountered in bank.lib.php on line 359
This commit is contained in:
Laurent Destailleur 2018-08-02 18:38:46 +02:00 committed by GitHub
commit e106fda5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,9 +356,9 @@ function checkES($IentOfi, $InumCta)
$sum = 0;
for ($i = 0; $i < 11; $i++) {
$sum += $values[$i] * substr($InumCta, $i, 1);
$sum += $values[$i] * (int) substr($InumCta, $i, 1);//int to cast result of substr to a number
}
$key = 11 - $sum % 11;
if ($key == 10)