diff --git a/lib/microappplugin.php b/lib/microappplugin.php index 1c886d5a69..542e973ddc 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -193,6 +193,7 @@ abstract class MicroAppPlugin extends Plugin function isMyActivity($activity) { $types = $this->types(); return (count($activity->objects) == 1 && + ($activity->objects[0] instanceof ActivityObject) && in_array($activity->objects[0]->type, $types)); }