]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Saving a blog post no longer rewrites all entity time_created and time_updated fields...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 14:51:20 +0000 (14:51 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 14:51:20 +0000 (14:51 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6170 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/blog_lib.php

index b6a4d53c246cb0c30ed00b8f2ede2c8595ee02cb..50ba5e92d323533816b6b66b209631e621861147 100644 (file)
@@ -321,7 +321,7 @@ class ElggBlog extends ElggObject {
                if (parent::save()) {
                        global $CONFIG;
                        $published = $this->publish_date;
-                       $sql = "UPDATE {$CONFIG->dbprefix}entities SET time_created = '$published', time_updated = '$published'";
+                       $sql = "UPDATE {$CONFIG->dbprefix}entities SET time_created = '$published', time_updated = '$published' WHERE guid = '{$this->getGUID()}'";
                        return update_data($sql);
                }