diff options
author | marijus <mario@mariovavti.com> | 2014-09-20 17:28:42 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-09-20 17:28:42 +0200 |
commit | 6c806f6f48fc7efe5fda380f2f9edb9a7dc09cab (patch) | |
tree | 4df2d6e8ed4865850d340b5d9377d27abeaf84fc /include/nav.php | |
parent | bd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba (diff) | |
download | volse-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/nav.php')
-rw-r--r-- | include/nav.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php index c6bc4d293..714f4b63d 100644 --- a/include/nav.php +++ b/include/nav.php @@ -105,8 +105,8 @@ EOT; $nav['usermenu'][] = Array('cloud/' . $channel['channel_address'],t('Files'),"",t('Your files')); require_once('include/chat.php'); - $chats = chatroom_list(local_user()); - if (count($chats)) { + $has_chats = chatroom_list_count(local_user()); + if($has_chats) { $nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms')); } |