Merge pull request #821 from DraperStudio/develop

Use object_get to retrieve a config field
This commit is contained in:
Hillel Coren 2016-04-20 19:50:23 +03:00
commit 9dd1a106a9

View File

@ -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()