only show tags if there's a logged-in user

darcs-hash:20081121004336-84dde-8fc36b38b9f35d9058118efebd509098f6ce8230.gz
This commit is contained in:
Evan Prodromou 2008-11-20 19:43:36 -05:00
parent fe6738b6c7
commit 491172638e

View File

@ -121,8 +121,7 @@ class ProfileList {
common_element_end('p'); common_element_end('p');
} }
$user = common_current_user(); if ($user) {
$action = NULL; $action = NULL;
if ($user->isSubscribed($this->profile)) { if ($user->isSubscribed($this->profile)) {
@ -154,6 +153,7 @@ class ProfileList {
'class' => 'tagother'), 'class' => 'tagother'),
_('Tag')); _('Tag'));
} }
}
common_element_end('li'); common_element_end('li');
} }