Update SiteConfigExtension.php
This commit is contained in:
parent
da367a4428
commit
b91f53db10
|
@ -23,7 +23,7 @@ class SiteConfigExtension extends Extension
|
||||||
break;
|
break;
|
||||||
case 'google-maps':
|
case 'google-maps':
|
||||||
$cfg = Config::inst()->get(GoogleMapField::class, 'default_options');
|
$cfg = Config::inst()->get(GoogleMapField::class, 'default_options');
|
||||||
$key = $cfg['api_key'];
|
$key = isset($cfg['api_key']) ? $cfg['api_key'] : '';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$key = '';
|
$key = '';
|
||||||
|
|
Loading…
Reference in New Issue