aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-03-06 03:04:29 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-03-06 03:04:29 +0000
commit575d1703656f56560fe36ab87931fd7b99b7d7e2 (patch)
tree17cffeeba57669c1b64472c2690984ccaa0ba734 /phpBB/mcp.php
parent2d52ece84f75abd1d4b35be62775446a49dc25da (diff)
downloadforums-575d1703656f56560fe36ab87931fd7b99b7d7e2.tar
forums-575d1703656f56560fe36ab87931fd7b99b7d7e2.tar.gz
forums-575d1703656f56560fe36ab87931fd7b99b7d7e2.tar.bz2
forums-575d1703656f56560fe36ab87931fd7b99b7d7e2.tar.xz
forums-575d1703656f56560fe36ab87931fd7b99b7d7e2.zip
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
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 5032dc5a4d..7df646c6a9 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -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))