]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check explicitly for ActivityObject in microappplugin
authorEvan Prodromou <evan@status.net>
Wed, 20 Jul 2011 15:39:51 +0000 (11:39 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 20 Jul 2011 15:39:51 +0000 (11:39 -0400)
lib/microappplugin.php

index 1c886d5a6918874219cd3e4a1276bf677b3adedc..542e973ddc4d5081f90a6f804f4fcf4f94aa6d87 100644 (file)
@@ -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));
     }