mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 19:20:23 +02:00
page header/footer become functions, forum passwords (I know, I know but it appears a popular feature for some reason ... inclusion not yet set in concrete nor complete), various bug fixes (and no doubt new bugs).
git-svn-id: file:///svn/phpbb/trunk@3969 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user