]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong array access to Entity object
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 Oct 2021 22:58:18 +0000 (18:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 Oct 2021 22:58:18 +0000 (18:58 -0400)
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-949051839

src/Model/Contact.php

index 0acb6d4d72d07099576406ca9e7e9524edf420f2..c6a91edc8ba48119eaff9d1cf40877b551710f13 100644 (file)
@@ -1088,7 +1088,7 @@ class Contact
                        if (!empty($contact['pending'])) {
                                try {
                                        $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) {
                                        DI::logger()->error('Pending contact doesn\'t have an introduction.', ['exception' => $exception]);
                                }