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,7 +356,7 @@ function checkES($IentOfi, $InumCta)
$sum = 0; $sum = 0;
for ($i = 0; $i < 11; $i++) { 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; $key = 11 - $sum % 11;