From: Michael Vogel Date: Sat, 28 Mar 2020 21:37:03 +0000 (+0100) Subject: Fixes "Undefined index: object" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ca88f53ecca2221580d07aeab183cd4526a4bbe;p=friendica.git Fixes "Undefined index: object" --- 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(); }