Apply suggestions from code review

Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
Michael Vogel 2021-11-07 14:02:13 +01:00 committed by GitHub
parent cff3dd67b0
commit 8fea67dade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 29 additions and 29 deletions

View file

@ -90,9 +90,9 @@ function geocoordinates_addon_admin(&$a, &$o)
function geocoordinates_addon_admin_post(&$a)
{
$api_key = (!empty($_POST['api_key']) ? trim($_POST['api_key']) : '');
$api_key = trim($_POST['api_key'] ?? '');
DI::config()->set('geocoordinates', 'api_key', $api_key);
$language = (!empty($_POST['language']) ? trim($_POST['language']) : '');
$language = trim($_POST['language'] ?? '');
DI::config()->set('geocoordinates', 'language', $language);
}