summaryrefslogtreecommitdiff
path: root/modules/comment/models
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-01 22:18:52 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-01 22:18:52 -0700
commit6f3ec5f03914324f596e51f22f2df49ec48e8053 (patch)
tree7d04ba294d98c9dfcc39a67b6869115e1418016f /modules/comment/models
parent588f991d558e86a07389e27c9ca9b1b4ab0f9fe7 (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.
Diffstat (limited to 'modules/comment/models')
-rw-r--r--modules/comment/models/comment.php2
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;
}
}