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;
|
return false;
|
||||||
}
|
}
|
||||||
if ( $this->getID() == 0 ) {
|
if ( $this->getID() == 0 ) {
|
||||||
$this->setCreateTime($newcreatetime);
|
$this->createtime = $newcreatetime;
|
||||||
$this->setID(AppDB::getLastInsertId());
|
$this->setID(AppDB::getLastInsertId());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user