Fix to a bug in the financial tool's validation router

- it didn't use the validation type -> validation method array to call the validation function
- resulted in CC validation not being called as expected
pull/762/head
iglocska 2015-11-17 22:25:37 +01:00
parent db359170f6
commit c71c8f968d
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class FinancialTool {
'iban' => 'IBAN',
'btc' => 'BTC',
);
if (in_array($type, array_keys($validationRoutes))) return $this->{'validate' . strtoupper($type)}($value);
if (in_array($type, array_keys($validationRoutes))) return $this->{'validate' . strtoupper($validationRoutes[$type])}($value);
return true;
}