diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-22 16:14:42 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-22 16:14:42 +0000 |
commit | 5f1a263e8fcf52ce3daaf4778a06e59fdee163d3 (patch) | |
tree | 83086d8bf832ca75f5c43720ae555e52e3df10b2 /mod/groups/views | |
parent | 5ee55d6f037671915f024fcb9ccd51be4f89eb30 (diff) | |
download | elgg-5f1a263e8fcf52ce3daaf4778a06e59fdee163d3.tar.gz elgg-5f1a263e8fcf52ce3daaf4778a06e59fdee163d3.tar.bz2 |
Icons now handle elegantly if you try and display a non-ElggUser entity.
git-svn-id: https://code.elgg.org/elgg/trunk@1492 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/default/groups/icon.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/groups/views/default/groups/icon.php b/mod/groups/views/default/groups/icon.php index 5e8729942..e3a342e4b 100644 --- a/mod/groups/views/default/groups/icon.php +++ b/mod/groups/views/default/groups/icon.php @@ -14,6 +14,8 @@ */ $group = $vars['entity']; +
+ if ($group instanceof ElggGroup) {
// Get size if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar'))) @@ -37,4 +39,10 @@ <div class="groupicon"> <a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><img src="<?php echo $vars['url']; ?>mod/groups/graphics/icon.php?group_guid=<?php echo $group->getGUID(); ?>&size=<?php echo $vars['size']; ?>" 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 |