Update mod/salmon.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
23b10cf2ae
commit
5974d045a5
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue