summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@plantard.controlezvous.ca>2009-02-01 23:37:54 +0000
committerSarven Capadisli <csarven@plantard.controlezvous.ca>2009-02-01 23:37:54 +0000
commit18593afee718b086f953edc32d001f6542eec744 (patch)
tree281437b649a5a31342b81270a8ef48224c30be2e
parentd309fd27c5ed073d6031184c1c4a9c0d76224e40 (diff)
If user is not logged in, then notice-options container shouldn't be
outputted.
-rw-r--r--lib/noticelist.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 7c88c33cc..3ef6691af 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -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');
+ }
}
/**