diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/blog/actions/blog/save.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 3f9e5e355..c42845037 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -144,9 +144,8 @@ if (!$error) { add_to_river('river/object/blog/create', 'create', elgg_get_logged_in_user_guid(), $blog->getGUID()); if ($guid) { - $q = "UPDATE {$db_prefix}entities SET time_created = '$date' - WHERE guid = $guid"; - update_data($q); + $blog->time_created = time(); + $blog->save(); } } elseif ($old_status == 'published' && $status == 'draft') { $q = "DELETE FROM {$db_prefix}river |