Prevent ids getting lost during editing

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-23 21:49:06 +02:00
committed by Chris Morgan
parent 3a25c64333
commit 16d212c552
2 changed files with 6 additions and 2 deletions

View File

@@ -200,7 +200,9 @@ class Comment {
$this->sSubject = $aClean['sSubject'];
$this->sBody = $aClean['sBody'];
$this->iParentId = $aClean['iThread'];
$this->iVersionId = $aClean['iVersionId'];
if($aClean['iVersionId'])
$this->iVersionId = $aClean['iVersionId'];
if(!$this->oOwner)
$this->oOwner = $_SESSION['current'];