]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4234 forcing limit to be nonnegative
authorCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:37:08 +0000 (14:37 -0500)
committerCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:37:08 +0000 (14:37 -0500)
engine/lib/entities.php

index 48c2e72b8cf0926a282f217fff4e0ffcf6e82462..82452fba16d6a691c4abd5e7f8d8d72fb9de35de 100644 (file)
@@ -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";
                }