max_id is inclusive

This commit is contained in:
Evan Prodromou
2010-10-25 11:18:49 -04:00
parent 968f9b0513
commit aef88c7cee
3 changed files with 3 additions and 3 deletions

View File

@@ -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';