Fix wrong array access to Entity object

- Address https://github.com/friendica/friendica/issues/10756#issuecomment-949051839
This commit is contained in:
Hypolite Petovan 2021-10-21 18:58:18 -04:00
parent 096dacf0fd
commit 82c2a30c59
1 changed files with 1 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ class Contact
if (!empty($contact['pending'])) { if (!empty($contact['pending'])) {
try { try {
$intro = DI::intro()->selectForContact($contact['id']); $intro = DI::intro()->selectForContact($contact['id']);
$menu['follow'] = [DI::l10n()->t('Approve'), 'notifications/intros/' . $intro['id'], true]; $menu['follow'] = [DI::l10n()->t('Approve'), 'notifications/intros/' . $intro->id, true];
} catch (IntroductionNotFoundException $exception) { } catch (IntroductionNotFoundException $exception) {
DI::logger()->error('Pending contact doesn\'t have an introduction.', ['exception' => $exception]); DI::logger()->error('Pending contact doesn\'t have an introduction.', ['exception' => $exception]);
} }