Unreported - use built in limit function.

This commit is contained in:
Ice
2008-04-23 15:35:23 +00:00
parent 2cb44678f6
commit 3b63e2fdaf

View File

@@ -245,11 +245,10 @@ $portal_config = obtain_portal_config();
if ($number_of_posts <> 0) if ($number_of_posts <> 0)
{ {
$sql .= ' $result = $db->sql_query($sql, $number_of_posts, $start);
LIMIT } else {
'.$start.',' . $number_of_posts;
}
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
}
// Instantiate BBCode if need be // Instantiate BBCode if need be
if ($bbcode_bitfield !== '') if ($bbcode_bitfield !== '')