aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-09-20 16:31:56 +0200
committermarijus <mario@mariovavti.com>2014-09-20 16:31:56 +0200
commitbd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba (patch)
tree54d5f45f497c5ff3cfd48c316aa3df9a0da60e50 /include/conversation.php
parent9feb619bea39824823ce39ca203b92fb6b68e6fb (diff)
downloadvolse-hubzilla-bd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba.tar.gz
volse-hubzilla-bd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba.tar.bz2
volse-hubzilla-bd54358aa6bfe90bfbc8aed7baf3a8110d6e45ba.zip
show bookmarks menu only if we have any bookmarks already
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 05ae72d61..8f1767482 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1556,7 +1556,9 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
);
}
- if($is_owner) {
+ require_once('include/menu.php');
+ $has_bookmarks = menu_list_count(local_user(),'',MENU_BOOKMARK) + menu_list_count(local_user(),'',MENU_SYSTEM|MENU_BOOKMARK);
+ if($is_owner && $has_bookmarks) {
$tabs[] = array(
'label' => t('Bookmarks'),
'url' => $a->get_baseurl() . '/bookmarks',