From: Evan Prodromou Date: Wed, 20 Jul 2011 15:39:51 +0000 (-0400) Subject: check explicitly for ActivityObject in microappplugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f726df9748151907fb93f8b915f293984637e9cc;p=quix0rs-gnu-social.git check explicitly for ActivityObject in microappplugin --- 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)); }