aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-19 03:49:39 -0700
committerfriendica <info@friendica.com>2012-10-19 03:49:39 -0700
commitb60560812f1917b4cf197e35d7fdf2e3d7261a59 (patch)
tree7ca8e1a1dc2a055906b76c7597002d5c60cb32ce /include/nav.php
parent8981da89c3426f94b8a963ffe8189a9d0400333f (diff)
downloadvolse-hubzilla-b60560812f1917b4cf197e35d7fdf2e3d7261a59.tar.gz
volse-hubzilla-b60560812f1917b4cf197e35d7fdf2e3d7261a59.tar.bz2
volse-hubzilla-b60560812f1917b4cf197e35d7fdf2e3d7261a59.zip
fix photo in nav menu
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php6
1 files changed, 5 insertions, 1 deletions
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'],
);