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:
commit
e106fda5e6
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user