aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/objects')
-rw-r--r--views/default/layout/objects/list/body.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/layout/objects/list/body.php b/views/default/layout/objects/list/body.php
index 8a59cd364..97331c1d1 100644
--- a/views/default/layout/objects/list/body.php
+++ b/views/default/layout/objects/list/body.php
@@ -21,8 +21,13 @@ $entity = $vars['entity'];
$title_link = elgg_get_array_value('title', $vars, '');
if ($title_link === '') {
+ if (isset($entity->title)) {
+ $text = $entity->title;
+ } else {
+ $text = $entity->name;
+ }
$params = array(
- 'text' => $entity->title,
+ 'text' => $text,
'href' => $entity->getURL(),
);
$title_link = elgg_view('output/url', $params);