From: Hypolite Petovan Date: Tue, 16 Oct 2018 22:29:28 +0000 (-0400) Subject: Fix Undefined index: photo in ActivityPub/Receiver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=341b83d1dfb4dd04a4635e64fb4dc54ed98acee9;p=friendica.git Fix Undefined index: photo in ActivityPub/Receiver --- diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 04da5fa596..a5ba0763db 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -461,7 +461,7 @@ class Receiver logger('Switch contact ' . $cid . ' (' . $profile['url'] . ') for user ' . $uid . ' to ActivityPub'); - $photo = $profile['photo']; + $photo = defaults($profile, 'photo', null); unset($profile['photo']); unset($profile['baseurl']); @@ -478,7 +478,7 @@ class Receiver } /** - * + * * * @param $receivers * @param $actor @@ -503,12 +503,12 @@ class Receiver } /** - * + * * * @param $object_data * @param array $activity * - * @return + * @return */ private static function addActivityFields($object_data, $activity) {