mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Use object_get to retrieve a config field
This commit is contained in:
parent
9281cd5ba2
commit
d87552c90e
@ -60,13 +60,7 @@ class AccountGateway extends EntityModel
|
||||
|
||||
public function getConfigField($field)
|
||||
{
|
||||
$config = $this->getConfig();
|
||||
|
||||
if (!$field || !property_exists($config, $field)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $config->$field;
|
||||
return object_get($this->getConfig(), $field, false);
|
||||
}
|
||||
|
||||
public function getPublishableStripeKey()
|
||||
|
Loading…
x
Reference in New Issue
Block a user