From 95751dddff2b1b7a2074d37a5b3102f256842ae4 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 7 Apr 2014 20:20:28 -0700 Subject: some fixes to #395 --- include/conversation.php | 2 +- include/reddav.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/conversation.php b/include/conversation.php index e5cd3358f..8803e74e7 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1516,7 +1516,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){ } require_once('include/chat.php'); - $chats = chatroom_list($a->profile['profile_uid']); + $chats = chatroom_list($uid); $subdued = ((count($chats)) ? '' : ' subdued'); $tabs[] = array( 'label' => t('Chatrooms'), diff --git a/include/reddav.php b/include/reddav.php index 7c14ca472..03cfe1aab 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -887,7 +887,7 @@ class RedBrowser extends DAV\Browser\Plugin { require_once('include/conversation.php'); if($this->auth->channel_name) - $html = profile_tabs(get_app(),(($this->auth->channel_id == local_user()) ? true : false),$this->auth->channel_name); + $html = profile_tabs(get_app(),(($this->auth->owner_id == local_user()) ? true : false),$this->auth->owner_nick); $html .= " -- cgit v1.2.3