Browse Source

While working on it, let's move out of the query also the start

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
8c8836261f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/PostModeration.php

+ 2 - 1
Sources/PostModeration.php

@@ -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,
 		)
 	);