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

@ -48,7 +48,7 @@ function newmemberwidget_network_mod_init ($a, $b)
function newmemberwidget_addon_admin_post(&$a)
{
$ft = (!empty($_POST['freetext']) ? trim($_POST['freetext']) : "");
$lsn = (!empty($_POST['localsupportname']) ? trim($_POST['localsupportname']) : "");
$lsn = trim($_POST['localsupportname'] ?? '');
$gs = intval($_POST['linkglobalsupport']);
$ls = intval($_POST['linklocalsupport']);
DI::config()->set('newmemberwidget', 'freetext', trim($ft));