From 3a943da814d8807e6962090683a024ab3628bbcf Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 24 May 2010 14:51:20 +0000 Subject: Saving a blog post no longer rewrites all entity time_created and time_updated fields. Yikes. git-svn-id: http://code.elgg.org/elgg/trunk@6170 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/blog_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php index b6a4d53c2..50ba5e92d 100644 --- a/mod/blog/blog_lib.php +++ b/mod/blog/blog_lib.php @@ -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); } -- cgit v1.2.3