Removed tons of useless queries from the team block;

Fixed incorrect language vars for news block;
This commit is contained in:
Marc Alexander
2010-09-05 10:51:35 +00:00
parent b60422cb2e
commit 9aa25c8117
3 changed files with 19 additions and 84 deletions

View File

@@ -239,7 +239,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
while ($row = $db->sql_fetchrow($result))
{
$attachments = array();
if(($auth->acl_get('u_download') && ($auth->acl_get('f_download', $row['forum_id']) || $row['forum_id'] == 0)) && $config['allow_attachments'] && $row['post_id'])
if(($auth->acl_get('u_download') && ($auth->acl_get('f_download', $row['forum_id']) || $row['forum_id'] == 0)) && $config['allow_attachments'] && $row['post_id'] && $row['post_attachment'])
{
// Pull attachment data
$sql2 = 'SELECT *