Last bug, please?

This commit is contained in:
Ice
2008-04-20 21:43:55 +00:00
parent 68cea4af30
commit 31de2ce21a

View File

@@ -153,8 +153,10 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
$sql = 'SELECT
forum_id
FROM
' . FORUMS_TABLE . '
' . ( ( strlen($str_where) > 0 ) ? 'WHERE' . substr($str_where, 4) : '' ) . '
' . FORUMS_TABLE . '
WHERE
forum_type = ' . FORUM_POST . '
' . $str_where . '
ORDER BY
forum_id';
$result = $db->sql_query_limit($sql, 1);