Fixes "Undefined index: object"
This commit is contained in:
parent
01d6bfd2dd
commit
3ca88f53ec
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue