mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Add expected contact field in Module\Contact\Poke
- Address PHP Notice: Undefined index: photo in src/Module/Contact/Poke.php on line 94
This commit is contained in:
parent
586fb10176
commit
cab40636bd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue