Update bank.lib.php

This commit is contained in:
Laurent Destailleur 2018-08-02 18:38:33 +02:00 committed by GitHub
parent 9d3a0442c0
commit 0e3473701a
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] * (int)substr($InumCta, $i, 1);//int to cast result of substr to a number
$sum += $values[$i] * (int) substr($InumCta, $i, 1);//int to cast result of substr to a number
}
$key = 11 - $sum % 11;
if ($key == 10)