From 3ca88f53ecca2221580d07aeab183cd4526a4bbe Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 28 Mar 2020 22:37:03 +0100 Subject: [PATCH] Fixes "Undefined index: object" --- src/Module/Objects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Objects.php b/src/Module/Objects.php index 264f3dbd64..cce2b73131 100644 --- a/src/Module/Objects.php +++ b/src/Module/Objects.php @@ -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(); } -- 2.39.5