aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-08 14:37:08 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-08 14:37:08 -0500
commit35a5ef862d7d28a173ab78b014afc372531fb17e (patch)
tree78b3303d3d3e2865680d2f0724f5be11e6b3440c /engine/lib
parent229a0cc6091e11ca8431d96d022898b778a9e951 (diff)
downloadelgg-35a5ef862d7d28a173ab78b014afc372531fb17e.tar.gz
elgg-35a5ef862d7d28a173ab78b014afc372531fb17e.tar.bz2
Fixes #4234 forcing limit to be nonnegative
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 48c2e72b8..82452fba1 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -923,7 +923,7 @@ function elgg_get_entities(array $options = array()) {
}
if ($options['limit']) {
- $limit = sanitise_int($options['limit']);
+ $limit = sanitise_int($options['limit'], false);
$offset = sanitise_int($options['offset'], false);
$query .= " LIMIT $offset, $limit";
}