From aef88c7ceeb219c12d4ebce65b6f1fbccbc1458a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 25 Oct 2010 11:18:49 -0400 Subject: max_id is inclusive --- classes/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Profile.php') diff --git a/classes/Profile.php b/classes/Profile.php index a359a02d9..37d2c571f 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -240,7 +240,7 @@ class Profile extends Memcached_DataObject } if ($max_id != 0) { - $query .= " and id < $max_id"; + $query .= " and id <= $max_id"; } $query .= ' order by id DESC'; -- cgit v1.2.3-54-g00ecf