1
0
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:
Ludovic Arnaud
2003-03-06 03:04:29 +00:00
parent 2d52ece84f
commit 575d170365
2 changed files with 9 additions and 2 deletions

View File

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