Set class property directly for createtime since there's no setter
This commit is contained in:
parent
c22e175e3b
commit
1e4af3517b
|
|
@ -297,7 +297,7 @@ class Task implements JsonSerializable {
|
|||
return false;
|
||||
}
|
||||
if ( $this->getID() == 0 ) {
|
||||
$this->setCreateTime($newcreatetime);
|
||||
$this->createtime = $newcreatetime;
|
||||
$this->setID(AppDB::getLastInsertId());
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user