From: Sarven Capadisli Date: Sun, 1 Feb 2009 23:37:54 +0000 (+0000) Subject: If user is not logged in, then notice-options container shouldn't be X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18593afee718b086f953edc32d001f6542eec744;p=quix0rs-gnu-social.git If user is not logged in, then notice-options container shouldn't be outputted. --- diff --git a/lib/noticelist.php b/lib/noticelist.php index 7c88c33cc4..3ef6691afa 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'); + } } /**