mirror of
https://github.com/a2nt/silverstripe-mapboxfield.git
synced 2024-10-22 12:05:53 +00:00
Update SiteConfigExtension.php
This commit is contained in:
parent
da367a4428
commit
b91f53db10
@ -23,7 +23,7 @@ class SiteConfigExtension extends Extension
|
||||
break;
|
||||
case 'google-maps':
|
||||
$cfg = Config::inst()->get(GoogleMapField::class, 'default_options');
|
||||
$key = $cfg['api_key'];
|
||||
$key = isset($cfg['api_key']) ? $cfg['api_key'] : '';
|
||||
break;
|
||||
default:
|
||||
$key = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user