aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/start.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index a5bf388e7..e6c986c76 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -255,9 +255,10 @@
} else {
$icontime = "default";
}
-
- //return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size;
-
+
+ if ($entity->isBanned()) {
+ return elgg_view('icon/user/default/'.$size);
+ }
$filehandler = new ElggFile();
$filehandler->owner_guid = $entity->getGUID();