From: brettp Date: Mon, 24 May 2010 14:51:20 +0000 (+0000) Subject: Saving a blog post no longer rewrites all entity time_created and time_updated fields... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3a943da814d8807e6962090683a024ab3628bbcf;p=lorea%2Felgg.git 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 --- 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); }