issue 160, fix a bug for lock document object when document object is first initialize

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9246 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-21 04:30:12 +00:00
parent 5e4638ae94
commit 28c8c97343

View file

@ -122,6 +122,8 @@
} }
function isLocked() { function isLocked() {
if(!$this->isExists()) return false;
return $this->get('comment_status') == 'ALLOW' ? false : true; return $this->get('comment_status') == 'ALLOW' ? false : true;
} }