diff --git a/mod/photos.php b/mod/photos.php
index 63b093dc37..ced27015b5 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -27,6 +27,11 @@ function photos_init(&$a) {
if(! count($r))
return;
+ $o .= '
';
+ $o .= '
' . $a->data['user']['username'] . '
';
+ $o .= '
';
+ $o .= '
';
+
$a->data['user'] = $r[0];
$sql_extra = permissions_sql($a->data['user']['uid']);
@@ -38,11 +43,6 @@ function photos_init(&$a) {
if(count($albums)) {
$a->data['albums'] = $albums;
- $o .= '';
- $o .= '
' . $a->data['user']['username'] . '
';
- $o .= '
';
- $o .= '
';
-
$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
if($albums_visible) {