Fixes "Undefined index: object"

This commit is contained in:
Michael Vogel 2020-03-28 22:37:03 +01:00
parent 01d6bfd2dd
commit 3ca88f53ec
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Objects extends BaseModule
$activity['type'] = $activity['type'] == 'Update' ? 'Create' : $activity['type'];
// Only display "Create" activity objects here, no reshares or anything else
if (!is_array($activity['object']) || ($activity['type'] != 'Create')) {
if (empty($activity['object']) || ($activity['type'] != 'Create')) {
throw new \Friendica\Network\HTTPException\NotFoundException();
}