From cede5d5434e4e50145daf2413c962a335c13cc99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 10 Sep 2014 16:51:44 +0200 Subject: Fix Mysql and Postgresql bug --- app/Model/CommentHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/CommentHistory.php') diff --git a/app/Model/CommentHistory.php b/app/Model/CommentHistory.php index 5b94729c..5988c026 100644 --- a/app/Model/CommentHistory.php +++ b/app/Model/CommentHistory.php @@ -98,7 +98,7 @@ class CommentHistory extends BaseHistory LEFT JOIN tasks ON tasks.id=comment_has_events.task_id WHERE comment_has_events.project_id = ? ORDER BY comment_has_events.id DESC - LIMIT 0, '.$limit.' + LIMIT '.$limit.' OFFSET 0 '; $rq = $this->db->execute($sql, array($project_id)); -- cgit v1.2.3