diff options
Diffstat (limited to 'include/contact_widgets.php')
-rw-r--r-- | include/contact_widgets.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php index a02fea523..a60b8b1c3 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -71,14 +71,17 @@ function categories_widget($baseurl,$selected = '') { if(! feature_enabled($a->profile['profile_uid'],'categories')) return ''; + $item_normal = item_normal(); + $terms = array(); $r = q("select distinct(term.term) from term join item on term.oid = item.id where item.uid = %d and term.uid = item.uid and term.type = %d - and item.author_xchan = '%s' - and item.item_restrict = 0 + and item.owner_xchan = '%s' + and item.item_wall = 1 + $item_normal order by term.term asc", intval($a->profile['profile_uid']), intval(TERM_CATEGORY), |