aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download.php')
-rw-r--r--phpBB/download.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/download.php b/phpBB/download.php
index 42753a5d11..be3a2f3c4c 100644
--- a/phpBB/download.php
+++ b/phpBB/download.php
@@ -275,11 +275,19 @@ $sql = 'SELECT *
WHERE attach_id = ' . intval($download_id);
$result = $db->sql_query($sql);
-if (!$attachment = $db->sql_fetchrow($result))
+if (!($attachment = $db->sql_fetchrow($result)))
{
trigger_error('ERROR_NO_ATTACHMENT');
}
+/*
+if ($row['forum_password'])
+{
+ // Do something else ... ?
+ login_forum_box($row);
+}
+*/
+
// get forum_id for attachment authorization or private message authorization
$authorised = FALSE;
@@ -290,7 +298,7 @@ $sql = "SELECT a.*, p.forum_id
AND (a.post_id = p.post_id OR a.post_id = 0)";
$result = $db->sql_query($sql);
-$auth_pages = $db->sql_fetchrowset($result);
+$auth_pages = $db->sql_fetchrowset($result); // loop through rather than rowset if poss
for ($i = 0; $i < count($auth_pages) && $authorised == FALSE; $i++)
{