From f726df9748151907fb93f8b915f293984637e9cc Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 20 Jul 2011 11:39:51 -0400 Subject: [PATCH] check explicitly for ActivityObject in microappplugin --- lib/microappplugin.php | 1 + 1 file changed, 1 insertion(+) 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)); }