diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/elgglib.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index ccecd69ec..2f9396da1 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -195,6 +195,7 @@ if (!isset($entity_class)) return false;
$subtype = $entity->getSubtype();
+ if (empty($subtype)) { $subtype = $entity_type; }
return elgg_view("{$entity_type}/{$subtype}",array(
'entity' => $entity,
|