Fix deprecated code
This commit is contained in:
parent
c931576e0e
commit
ad50810c7a
@ -120,12 +120,12 @@ function bank_admin_prepare_head($object)
|
||||
* Check SWIFT informations for a bank account
|
||||
*
|
||||
* @param Account $account A bank account
|
||||
* @return boolean True if informations are valid, false otherwise
|
||||
* @return boolean True if informations are valid, false otherwise
|
||||
*/
|
||||
function checkSwiftForAccount($account)
|
||||
{
|
||||
$swift = $account->bic;
|
||||
if (eregi("^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$", $swift)) {
|
||||
if (preg_march("/^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$/", $swift)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user