mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue when setting payment API key
This commit is contained in:
parent
0da7a1a6d1
commit
6662950e51
@ -644,11 +644,14 @@ class AccountController extends \BaseController {
|
|||||||
$config->$field = $value;
|
$config->$field = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cardCount = 0;
|
$cardCount = 0;
|
||||||
foreach($creditcards as $card => $value)
|
if ($creditcards)
|
||||||
{
|
{
|
||||||
$cardCount += intval($value);
|
foreach($creditcards as $card => $value)
|
||||||
}
|
{
|
||||||
|
$cardCount += intval($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$accountGateway->config = json_encode($config);
|
$accountGateway->config = json_encode($config);
|
||||||
$accountGateway->accepted_credit_cards = $cardCount;
|
$accountGateway->accepted_credit_cards = $cardCount;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user