diff options
Diffstat (limited to 'mod/search')
-rw-r--r-- | mod/search/views/default/search/comments/listing.php | 2 | ||||
-rw-r--r-- | mod/search/views/default/search/listing.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php index bfefe29a6..943b65d76 100644 --- a/mod/search/views/default/search/comments/listing.php +++ b/mod/search/views/default/search/comments/listing.php @@ -57,6 +57,8 @@ $body = elgg_view_title($title_str); foreach ($vars['entities'] as $entity) { if ($owner = $entity->getOwnerEntity()) { $icon = elgg_view('profile/icon', array('entity' => $owner)); + } elseif ($entity instanceof ElggUser) { + $icon = elgg_view('profile/icon', array('entity' => $entity)); } else { $icon = ''; } diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php index becf2bf8e..45c45ffee 100644 --- a/mod/search/views/default/search/listing.php +++ b/mod/search/views/default/search/listing.php @@ -66,6 +66,8 @@ $body = elgg_view_title($type_str); foreach ($entities as $entity) { if ($owner = $entity->getOwnerEntity()) { $icon = elgg_view('profile/icon', array('entity' => $owner)); + } elseif ($entity instanceof ElggUser) { + $icon = elgg_view('profile/icon', array('entity' => $entity)); } else { $icon = ''; } |