aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-02-20 00:15:35 +0000
committerChris Smith <toonarmy@phpbb.com>2010-02-20 00:15:35 +0000
commita63ceb28e22873921e70326e758d18c0569d3eb0 (patch)
tree0f40355587535fba6947f2454a4b15df8a15cdbf /phpBB
parentfff87d544d2c6c4d6174fbd11544a3701935a911 (diff)
downloadforums-a63ceb28e22873921e70326e758d18c0569d3eb0.tar
forums-a63ceb28e22873921e70326e758d18c0569d3eb0.tar.gz
forums-a63ceb28e22873921e70326e758d18c0569d3eb0.tar.bz2
forums-a63ceb28e22873921e70326e758d18c0569d3eb0.tar.xz
forums-a63ceb28e22873921e70326e758d18c0569d3eb0.zip
merge in r10509
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_7@10510 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/viewtopic.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index f3f14289cb..7204f15110 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -160,6 +160,7 @@
<li>[Fix] Restrict search for language/../iso.txt to folders. (Bug #57795)</li>
<li>[Fix] Make user_email_hash() function independent from system's architecture. (Bug #57755)</li>
<li>[Fix] Correct behavior of &quot;force_approved_state&quot; when value is false. (Bug #57715)</li>
+ <li>[Fix] Global announcements could not be accessed on a board using Firebird as the database server. (Bug #57525)</li>
<li>[Change] Move redirect into a hidden field to avoid issues with mod_security. (Bug #54145)</li>
<li>[Change] Log activation through inactive users ACP. (Bug #30145)</li>
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 8f42342a87..29c4e5cdc1 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -186,6 +186,13 @@ $sql_array = array(
'FROM' => array(FORUMS_TABLE => 'f'),
);
+// Firebird handles two columns of the same name a little differently, this
+// addresses that by forcing the forum_id to come from the forums table.
+if ($db->sql_layer === 'firebird')
+{
+ $sql_array['SELECT'] = 'f.forum_id AS forum_id, ' . $sql_array['SELECT'];
+}
+
// The FROM-Order is quite important here, else t.* columns can not be correctly bound.
if ($post_id)
{