aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views')
-rw-r--r--mod/profile/views/default/profile/icon.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php
index c3a8b13c9..5e0b04856 100644
--- a/mod/profile/views/default/profile/icon.php
+++ b/mod/profile/views/default/profile/icon.php
@@ -17,6 +17,8 @@
if (empty($vars['entity']))
$vars['entity'] = $vars['user'];
+ if ($vars['entity'] instanceof ElggUser) {
+
$name = htmlentities($vars['entity']->name);
$username = $vars['entity']->username;
@@ -65,4 +67,10 @@
</div>
<a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><img src="<?php echo $vars['url']; ?>pg/icon/<?php echo $username; ?>/<?php echo $vars['size']; ?>/<?php echo $icontime; ?>.jpg" border="0" <?php echo $align; ?> title="<?php echo $name; ?>" <?php echo $vars['js']; ?> /></a>
-</div> \ No newline at end of file
+</div>
+
+<?php
+
+ }
+
+?> \ No newline at end of file