Update SiteConfigExtension.php

This commit is contained in:
Tony Air 2022-06-16 00:37:46 +02:00 committed by GitHub
parent da367a4428
commit b91f53db10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';