Skip to content

Commit

Permalink
While working on it, let's move out of the query also the start
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <[email protected]>
  • Loading branch information
emanuele45 committed Jun 15, 2013
1 parent 9d9de3a commit 8c88362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/PostModeration.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ function UnapprovedPosts()
AND t.id_first_msg ' . ($context['current_view'] == 'topics' ? '=' : '!=') . ' m.id_msg
AND {query_see_board}
' . $approve_query . '
LIMIT ' . $context['start'] . ', {int:limit}',
LIMIT {int:start}, {int:limit}',
array(
'not_approved' => 0,
'start' => $context['start'],
'limit' => $limit,
)
);
Expand Down

0 comments on commit 8c88362

Please sign in to comment.