If user is not logged in, then notice-options container shouldn't be
outputted.
This commit is contained in:
parent
d309fd27c5
commit
18593afee7
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user