]> git.mxchange.org Git - friendica.git/commitdiff
what happened to the photos page vcard?
authorfriendica <info@friendica.com>
Fri, 9 Nov 2012 08:21:16 +0000 (00:21 -0800)
committerfriendica <info@friendica.com>
Fri, 9 Nov 2012 08:21:16 +0000 (00:21 -0800)
mod/photos.php

index 12ca99e60f25f76a0c1e5cbca30a52606c2cb2d2..08dc0e0fc5e6bac7c74645bb6607e368fbb43daf 100644 (file)
@@ -27,12 +27,13 @@ function photos_init(&$a) {
                if(! count($r))
                        return;
 
+               $a->data['user'] = $r[0];
+
                $o .= '<div class="vcard">';
                $o .= '<div class="fn">' . $a->data['user']['username'] . '</div>';
                $o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg') . '" alt="' . $a->data['user']['username'] . '" /></div>';
                $o .= '</div>';
 
-               $a->data['user'] = $r[0];
 
                $sql_extra = permissions_sql($a->data['user']['uid']);