mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
The last one for today. As of now, sql_query_limit($sql, 0) will _not_ limit the number of rows that are affected.
git-svn-id: file:///svn/phpbb/trunk@3608 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -641,6 +641,8 @@ switch ($mode)
|
||||
AND p.poster_id = u.user_id
|
||||
$limit_posts_time
|
||||
ORDER BY $sort_order";
|
||||
|
||||
$start = ($posts_per_page == 0) ? 0 : $start;
|
||||
$result = $db->sql_query_limit($sql, $posts_per_page, $start);
|
||||
|
||||
$i = 0;
|
||||
@@ -941,7 +943,7 @@ switch ($mode)
|
||||
$limit_posts_time
|
||||
ORDER BY $sort_order";
|
||||
}
|
||||
$result = $db->sql_query_limit($sql, -1, $start);
|
||||
$result = $db->sql_query_limit($sql, 0, $start);
|
||||
|
||||
$post_id_list = array();
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
|
Reference in New Issue
Block a user