aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-09-20 17:28:42 +0200
committermarijus <mario@mariovavti.com>2014-09-20 17:28:42 +0200
commit6c806f6f48fc7efe5fda380f2f9edb9a7dc09cab (patch)
tree4df2d6e8ed4865850d340b5d9377d27abeaf84fc /include/conversation.php
parentbd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba (diff)
downloadvolse-hubzilla-6c806f6f48fc7efe5fda380f2f9edb9a7dc09cab.tar.gz
volse-hubzilla-6c806f6f48fc7efe5fda380f2f9edb9a7dc09cab.tar.bz2
volse-hubzilla-6c806f6f48fc7efe5fda380f2f9edb9a7dc09cab.zip
aalso change the way we check for number of chatrooms
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 8f1767482..6e56782dd 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1545,8 +1545,8 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
}
require_once('include/chat.php');
- $chats = chatroom_list($uid);
- if (count($chats)) {
+ $has_chats = chatroom_list_count($uid);
+ if (count($has_chats)) {
$tabs[] = array(
'label' => t('Chatrooms'),
'url' => $a->get_baseurl() . '/chat/' . $nickname,