mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-07 03:59:12 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user