Fix for ticket #357.

Changed the set the created date as part of the import and change
models/comment::save() to not set the creation date if it is already
set.
This commit is contained in:
Tim Almdal
2009-07-01 22:18:52 -07:00
parent 588f991d55
commit 6f3ec5f039
2 changed files with 2 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class Comment_Model extends ORM {
public function save() {
if (!empty($this->changed)) {
$this->updated = time();
if (!$this->loaded) {
if (!$this->loaded && empty($this->created)) {
$this->created = $this->updated;
}
}