diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php
index 53bc597aaa9..4da6d3baad9 100644
--- a/htdocs/public/users/view.php
+++ b/htdocs/public/users/view.php
@@ -269,12 +269,7 @@ if ($showbarcode) {
}
-// Me
-// Show photo
-if ($urllogo) {
- print '';
-}
-
+// Me section
$usersection = '';
@@ -325,6 +320,11 @@ if (!empty($object->socialnetworks) && is_array($object->socialnetworks) && coun
}
if ($usersection) {
+ // Show photo
+ if ($urllogo) {
+ print '
';
+ }
+
print '