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

@ -60,7 +60,7 @@ class Notice_tag extends Memcached_DataObject
} }
if ($max_id != 0) { if ($max_id != 0) {
$nt->whereAdd('notice_id < ' . $max_id); $nt->whereAdd('notice_id <= ' . $max_id);
} }
$nt->orderBy('notice_id DESC'); $nt->orderBy('notice_id DESC');

View File

@ -240,7 +240,7 @@ class Profile extends Memcached_DataObject
} }
if ($max_id != 0) { if ($max_id != 0) {
$query .= " and id < $max_id"; $query .= " and id <= $max_id";
} }
$query .= ' order by id DESC'; $query .= ' order by id DESC';

View File

@ -55,7 +55,7 @@ class Reply extends Memcached_DataObject
} }
if ($max_id != 0) { if ($max_id != 0) {
$reply->whereAdd('notice_id < ' . $max_id); $reply->whereAdd('notice_id <= ' . $max_id);
} }
$reply->orderBy('notice_id DESC'); $reply->orderBy('notice_id DESC');