issue 1197 init write, document is not exists. so allow comment status is true

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9998 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-01-02 01:57:41 +00:00
parent aec75bbdf1
commit 245d96fd44

View file

@ -98,8 +98,10 @@
return $_SESSION['accessible'][$this->document_srl]==true?true:false;
}
function allowComment() {
if(!$this->isExists()) return false;
function allowComment()
{
// init write, document is not exists. so allow comment status is true
if(!$this->isExists()) return true;
return $this->get('comment_status') == 'ALLOW' ? true : false;
}