aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-30 20:33:50 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-30 20:33:50 +0000
commit1786bdfe37c2636a6a1d3c96d42fb5dc65c13870 (patch)
treec2a427ef0f7129df58235c9c3017c9610f3245df /mod/search/views
parentd403e2beae84ce881bedd3d0883fefe897c2c73a (diff)
downloadelgg-1786bdfe37c2636a6a1d3c96d42fb5dc65c13870.tar.gz
elgg-1786bdfe37c2636a6a1d3c96d42fb5dc65c13870.tar.bz2
If a search result returns a user, make the icon be for the user and not the owner (which is no one)
git-svn-id: http://code.elgg.org/elgg/trunk@3710 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views')
-rw-r--r--mod/search/views/default/search/comments/listing.php2
-rw-r--r--mod/search/views/default/search/listing.php2
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 = '';
}