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,12 +203,15 @@ class NoticeListItem extends Widget
function showNoticeOptions() function showNoticeOptions()
{ {
$user = common_current_user();
if ($user) {
$this->out->elementStart('div', 'notice-options'); $this->out->elementStart('div', 'notice-options');
$this->showFaveForm(); $this->showFaveForm();
$this->showReplyLink(); $this->showReplyLink();
$this->showDeleteLink(); $this->showDeleteLink();
$this->out->elementEnd('div'); $this->out->elementEnd('div');
} }
}
/** /**
* start a single notice. * start a single notice.