From: Hypolite Petovan Date: Wed, 23 Dec 2020 07:48:38 +0000 (-0500) Subject: Add expected contact field in Module\Contact\Poke X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cab40636bd2de4170928400c386fe40630f5311a;p=friendica.git Add expected contact field in Module\Contact\Poke - Address PHP Notice: Undefined index: photo in src/Module/Contact/Poke.php on line 94 --- diff --git a/src/Module/Contact/Poke.php b/src/Module/Contact/Poke.php index 5ecec4bae0..96c0e3fea5 100644 --- a/src/Module/Contact/Poke.php +++ b/src/Module/Contact/Poke.php @@ -44,7 +44,7 @@ class Poke extends BaseModule Logger::info('verb ' . $verb . ' contact ' . $contact_id); - $contact = DBA::selectFirst('contact', ['id', 'name', 'url'], ['id' => $parameters['id'], 'uid' => local_user()]); + $contact = DBA::selectFirst('contact', ['id', 'name', 'url', 'photo'], ['id' => $parameters['id'], 'uid' => local_user()]); if (!DBA::isResult($contact)) { return self::postReturn(false); }