getObject() instanceof ElggEntity) { $obj = $statement->getObject(); $subtype = $obj->getSubtype(); if (empty($subtype)) $subtype = $obj->type; if (empty($subtype)) $subtype = "general"; } else if (is_array($statement->getObject())) { $obj = $statement->getObject(); $subtype = "relationship_" . $obj['relationship']; } ?>

()