From 5f1a263e8fcf52ce3daaf4778a06e59fdee163d3 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 22 Jul 2008 16:14:42 +0000 Subject: 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 --- mod/groups/views/default/groups/icon.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mod/groups/views') 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 @@
title="" /> -
\ No newline at end of file + + + \ No newline at end of file -- cgit v1.2.3