X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.profile.php;h=dfc4bf306e768501f93eff88681c31fe96a559a0;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=340e9adccb049f41624269b022e188725ab34e3a;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git
diff --git a/plugins/function.profile.php b/plugins/function.profile.php
index 340e9ad..dfc4bf3 100644
--- a/plugins/function.profile.php
+++ b/plugins/function.profile.php
@@ -47,7 +47,7 @@ function smarty_function_profile($params, &$smarty)
$name = '';
}
}
- if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin') {
+ if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) {
$name = '' . $name . '';
}
return $name;