aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-21 16:14:28 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-21 16:14:28 +0000
commite14beb4681147ab97c00c9969926bb760475b599 (patch)
tree00cbc414f8de1dc3e2405d94fc2f06f41609375a /engine/lib/elgglib.php
parentd3f088807f5b85186bdee00a3d192a4def9c86a2 (diff)
downloadelgg-e14beb4681147ab97c00c9969926bb760475b599.tar.gz
elgg-e14beb4681147ab97c00c9969926bb760475b599.tar.bz2
Fixed an inconsistency in elgg_view_entity
git-svn-id: https://code.elgg.org/elgg/trunk@505 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php1
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,