aalso change the way we check for number of chatrooms

This commit is contained in:
marijus
2014-09-20 17:28:42 +02:00
parent bd54358aa6
commit 6c806f6f48
3 changed files with 15 additions and 4 deletions

View File

@@ -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,