Skip to content

Commit

Permalink
Fixes Elgg#4504 depending on existence of a view rather than content …
Browse files Browse the repository at this point in the history
…returned
  • Loading branch information
cash committed Jun 23, 2012
1 parent 32108df commit 36ff8be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions engine/lib/views.php
Expand Up @@ -872,8 +872,7 @@ function elgg_view_entity(ElggEntity $entity, $vars = array(), $bypass = true, $
$contents = '';
if (elgg_view_exists("$entity_type/$subtype")) {
$contents = elgg_view("$entity_type/$subtype", $vars, $bypass, $debug);
}
if (empty($contents)) {
} else {
$contents = elgg_view("$entity_type/default", $vars, $bypass, $debug);
}

Expand Down
2 changes: 0 additions & 2 deletions views/json/export/entity.php
Expand Up @@ -21,5 +21,3 @@
global $jsonexport;
$jsonexport[$entity->getType()][$entity->getSubtype()][] = $export;

// @todo hack to fix #4504
echo "Fix for bug #4504";

0 comments on commit 36ff8be

Please sign in to comment.