diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 3 |
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(); } |