check explicitly for ActivityObject in microappplugin

This commit is contained in:
Evan Prodromou 2011-07-20 11:39:51 -04:00
parent 0ad7411343
commit f726df9748

View 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));
}