X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=cf1bca9cb9d9dc2b8e6e437bbb271750414f6ae3;hb=2a442952b69987d578288891c064b0fed0369086;hp=3f5482a5baf326934e39ae003aad09b321e4770a;hpb=befc2af5043a3afde251721c0d27df695db1bb7e;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 3f5482a5ba..cf1bca9cb9 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -39,7 +39,7 @@ function wallmessage_post(App $a) { $subject = (!empty($_REQUEST['subject']) ? Strings::escapeTags(trim($_REQUEST['subject'])) : ''); $body = (!empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : ''); - $recipient = (($a->argc > 1) ? Strings::escapeTags($a->argv[1]) : ''); + $recipient = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(DI::args()->getArgv()[1]) : ''); if ((! $recipient) || (! $body)) { return; } @@ -97,7 +97,7 @@ function wallmessage_content(App $a) { return; } - $recipient = (($a->argc > 1) ? $a->argv[1] : ''); + $recipient = ((DI::args()->getArgc() > 1) ? DI::args()->getArgv()[1] : ''); if (!$recipient) { notice(DI::l10n()->t('No recipient.'));