If user is not logged in, then notice-options container shouldn't be

outputted.
This commit is contained in:
Sarven Capadisli 2009-02-01 23:37:54 +00:00
parent d309fd27c5
commit 18593afee7
1 changed files with 8 additions and 5 deletions

View File

@ -203,11 +203,14 @@ class NoticeListItem extends Widget
function showNoticeOptions()
{
$this->out->elementStart('div', 'notice-options');
$this->showFaveForm();
$this->showReplyLink();
$this->showDeleteLink();
$this->out->elementEnd('div');
$user = common_current_user();
if ($user) {
$this->out->elementStart('div', 'notice-options');
$this->showFaveForm();
$this->showReplyLink();
$this->showDeleteLink();
$this->out->elementEnd('div');
}
}
/**