aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2015-09-21 15:41:17 +0200
committermrjive <mrjive@mrjive.it>2015-09-21 15:41:17 +0200
commit49d11ed9f88531bcd03f2f129230b0352014c22c (patch)
tree1f21f01874913a3f5f1f86bdc857dccc143f6a3b /include/nav.php
parent024af91df82b4bb14983c53ae319ba9d348773d6 (diff)
parentd2565d0f61c139df6536ec9d90c10d7af29ef9e5 (diff)
downloadvolse-hubzilla-49d11ed9f88531bcd03f2f129230b0352014c22c.tar.gz
volse-hubzilla-49d11ed9f88531bcd03f2f129230b0352014c22c.tar.bz2
volse-hubzilla-49d11ed9f88531bcd03f2f129230b0352014c22c.zip
Merge pull request #2 from redmatrix/master
get fresh code from HZ base
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php
index 59a7c83a3..972795e83 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -94,9 +94,8 @@ EOT;
require_once('include/chat.php');
$has_chats = chatroom_list_count(local_channel());
- if($has_chats) {
- $nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
- }
+ $nav['usermenu'][] = Array('chat/' . $channel['channel_address'] . (($has_chats) ? '' : '/new'), t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
+
require_once('include/menu.php');
$has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK);