issue 1513 if write by anonymous, change member_srl to zero

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10284 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-03-02 06:00:29 +00:00
parent 63f943770b
commit c1cc5b81c0
2 changed files with 17 additions and 7 deletions

View file

@ -183,12 +183,17 @@
}
// if additional information which can access contents is set
if($add_content_info) {
$memberSrl = $this->get('member_srl');
if($memberSrl < 0)
{
$memberSrl = 0;
}
$content = sprintf(
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d xe_content">%s</div><!--AfterComment(%d,%d)-->',
$this->comment_srl, $this->get('member_srl'),
$this->comment_srl, $this->get('member_srl'),
$this->comment_srl, $memberSrl,
$this->comment_srl, $memberSrl,
$content,
$this->comment_srl, $this->get('member_srl')
$this->comment_srl, $memberSrl
);
// xe_content class name should be specified although content access is not necessary.
} else {