diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-18 18:47:17 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-18 18:47:17 +0000 |
commit | 2408cc5c69209350a350246e260de494720eb773 (patch) | |
tree | 50f278b2a70d4c5a850a32a6349083deed760341 /engine/lib/entities.php | |
parent | e18e17ef647e7faf4563bb8ce77ffe448bc929cb (diff) | |
download | elgg-2408cc5c69209350a350246e260de494720eb773.tar.gz elgg-2408cc5c69209350a350246e260de494720eb773.tar.bz2 |
Fixes #2046. Applied Franz' patch for sanitize_int().
git-svn-id: http://code.elgg.org/elgg/trunk@9004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 685c68a5b..cb197b569 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -922,7 +922,7 @@ function elgg_get_entities(array $options = array()) { if ($options['limit']) { $limit = sanitise_int($options['limit']); - $offset = sanitise_int($options['offset']); + $offset = sanitise_int($options['offset'], false); $query .= " LIMIT $offset, $limit"; } |