aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/blog_lib.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 14:51:20 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 14:51:20 +0000
commit3a943da814d8807e6962090683a024ab3628bbcf (patch)
tree8e94a97a53cff08b69c95f1d7b2cf776a5de6e01 /mod/blog/blog_lib.php
parentebaef989398746f639ef3d586614c49dbf1d45c5 (diff)
downloadelgg-3a943da814d8807e6962090683a024ab3628bbcf.tar.gz
elgg-3a943da814d8807e6962090683a024ab3628bbcf.tar.bz2
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
Diffstat (limited to 'mod/blog/blog_lib.php')
-rw-r--r--mod/blog/blog_lib.php2
1 files changed, 1 insertions, 1 deletions
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);
}