From: Cash Costello Date: Sun, 8 Jan 2012 19:37:08 +0000 (-0500) Subject: Fixes #4234 forcing limit to be nonnegative X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=35a5ef862d7d28a173ab78b014afc372531fb17e;p=lorea%2Felgg.git Fixes #4234 forcing limit to be nonnegative --- 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"; }