From 5974d045a52aa70d9971053c09b07d4d25e285c3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 6 Nov 2021 00:55:58 +0100 Subject: [PATCH] Update mod/salmon.php Co-authored-by: Hypolite Petovan --- mod/salmon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/salmon.php b/mod/salmon.php index ad4950762..388d4854d 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -41,7 +41,7 @@ function salmon_post(App $a, $xml = '') { Logger::debug('new salmon ' . $xml); - $nick = ((DI::args()->getArgc() > 1) ? trim(DI::args()->getArgv()[1]) : ''); + $nick = trim(DI::args()->getArgv()[1] ?? ''); $importer = DBA::selectFirst('user', [], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]); if (! DBA::isResult($importer)) {