]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If user is not logged in, then notice-options container shouldn't be
authorSarven Capadisli <csarven@plantard.controlezvous.ca>
Sun, 1 Feb 2009 23:37:54 +0000 (23:37 +0000)
committerSarven Capadisli <csarven@plantard.controlezvous.ca>
Sun, 1 Feb 2009 23:37:54 +0000 (23:37 +0000)
outputted.

lib/noticelist.php

index 7c88c33cc44ccb5615571a3b966747e485be21e4..3ef6691afa1f1ee06f33fef9e6b3f1f302b0ba00 100644 (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');
+        }
     }
 
     /**