Unreported - use built in limit function.
This commit is contained in:
@@ -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 !== '')
|
||||||
|
|||||||
Reference in New Issue
Block a user