]> git.mxchange.org Git - friendica.git/commitdiff
Fixes "Undefined index: object"
authorMichael Vogel <icarus@dabo.de>
Sat, 28 Mar 2020 21:37:03 +0000 (22:37 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 28 Mar 2020 21:37:03 +0000 (22:37 +0100)
src/Module/Objects.php

index 264f3dbd64b290514ccc54526d1bc960278c8e84..cce2b7313182fe9a9b43fb2f2276eedf9860f83e 100644 (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();
                }