Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 15, 2019
1 parent 838633d commit 9685b56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/compta/bank/class/account.class.php
Expand Up @@ -1427,6 +1427,7 @@ public function getCountryCode()
if (!empty($this->iban))
{
// If IBAN defined, we can know country of account from it
$reg = array();
if (preg_match("/^([a-zA-Z][a-zA-Z])/i", $this->iban, $reg)) return $reg[1];
}

Expand Down

0 comments on commit 9685b56

Please sign in to comment.