diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-02 13:18:52 +0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-02 22:57:31 +0800 |
commit | 8687278954f27fdcd962eee7c36a6287abc1f0e8 (patch) | |
tree | 753623e53b0eaeddcab30c2f3a9a5cb1c415be55 /modules/comment/models | |
parent | a674170bf779ab373ef52fe4dd491c2401c4033b (diff) |
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.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
Diffstat (limited to 'modules/comment/models')
-rw-r--r-- | modules/comment/models/comment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php index ec4d4794..22c465df 100644 --- a/modules/comment/models/comment.php +++ b/modules/comment/models/comment.php @@ -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; } } |