From b60560812f1917b4cf197e35d7fdf2e3d7261a59 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 19 Oct 2012 03:49:39 -0700 Subject: fix photo in nav menu --- include/nav.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index 4c37913c0..85af378ff 100644 --- a/include/nav.php +++ b/include/nav.php @@ -28,6 +28,9 @@ function nav(&$a) { */ $channel = $a->get_channel(); + $xchan = q("select * from xchan where xchan_hash = '%s' limit 1", + dbesc($channel['channel_hash']) + ); $myident = ((is_array($channel) && isset($channel['channel_address'])) ? $channel['channel_address'] . '@' : ''); @@ -55,8 +58,9 @@ function nav(&$a) { // user info $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($channel['channel_id'])); + $userinfo = array( - 'icon' => $r[0]['micro'], + 'icon' => $xchan[0]['xchan_photo'], 'name' => $channel['channel_name'], ); -- cgit v1.2.3