From 9c20a2d6ebaeb62ae11572fbfcfaba5af606ef3b Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 15 Feb 2011 19:58:56 +0000 Subject: Fixes #2476: update_entity_last_action() sanitizes posted time. git-svn-id: http://code.elgg.org/elgg/trunk@8255 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 81c14da4d..61e732651 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2143,7 +2143,8 @@ function elgg_instanceof($entity, $type = NULL, $subtype = NULL, $class = NULL) function update_entity_last_action($guid, $posted = NULL) { global $CONFIG; $guid = (int)$guid; - + $posted = (int)$posted; + if (!$posted) { $posted = time(); } -- cgit v1.2.3