aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 19:58:56 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 19:58:56 +0000
commit9c20a2d6ebaeb62ae11572fbfcfaba5af606ef3b (patch)
treef2582bbe90b98a758b66ab37203bf22849308ac6 /engine/lib
parent73d5bce6e46bc7eed6fc41362f041efcca9f9513 (diff)
downloadelgg-9c20a2d6ebaeb62ae11572fbfcfaba5af606ef3b.tar.gz
elgg-9c20a2d6ebaeb62ae11572fbfcfaba5af606ef3b.tar.bz2
Fixes #2476: update_entity_last_action() sanitizes posted time.
git-svn-id: http://code.elgg.org/elgg/trunk@8255 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php3
1 files changed, 2 insertions, 1 deletions
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();
}