From fff8318f1f9654709040a22db156fb99e7d14142 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 17 Oct 2012 00:05:48 +0100 Subject: [PATCH] offset after limit --- ext/comment/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index d287e5c9..8178a46a 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -363,7 +363,7 @@ class CommentList extends Extension { LEFT JOIN users ON comments.owner_id=users.id WHERE users.id = :user_id ORDER BY comments.id DESC - OFFSET :offset LIMIT :limit + LIMIT :limit OFFSET :offset ", array("user_id"=>$user_id, "offset"=>$offset, "limit"=>$count)); $comments = array(); foreach($rows as $row) {