diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php
index 560cc7713..a97f897c4 100644
--- a/e107_core/shortcodes/batch/comment_shortcodes.php
+++ b/e107_core/shortcodes/batch/comment_shortcodes.php
@@ -99,11 +99,14 @@ class comment_shortcodes extends e_shortcode
$pref = e107::getPref();
$REPLY = '';
- if($this->var['comment_lock'] != "1" && $this->var['comment_blocked'] < 1)
+ if(USERID || $pref['anon_post'] == 1)
{
- if ($thisaction == "comment" && $pref['nested_comments'])
+ if($this->var['comment_lock'] != "1" && $this->var['comment_blocked'] < 1)
{
- $REPLY = "";
+ if ($thisaction == "comment" && $pref['nested_comments'])
+ {
+ $REPLY = "";
+ }
}
}
return $REPLY;