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

@ -26,7 +26,7 @@ function webrtc_addon_admin (&$a, &$o) {
]);
}
function webrtc_addon_admin_post (&$a) {
$url = (!empty($_POST['webrtcurl']) ? trim($_POST['webrtcurl']) : '');
$url = trim($_POST['webrtcurl'] ?? '');
DI::config()->set('webrtc', 'webrtcurl', $url);
}