aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_main.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-01 13:38:25 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-01 13:38:25 +0200
commit52c7193ad0ea30f990560594c8c2ada7fd2b696b (patch)
treeb8584a95b3287f839b28c71561988aa625728f0a /phpBB/includes/acp/acp_main.php
parent2a92fee06d22eb54ee9373adca1c3b50b1d3e3d7 (diff)
parent8cb0e30afc54b419450c8144ae1e80c6b8f9826a (diff)
downloadforums-52c7193ad0ea30f990560594c8c2ada7fd2b696b.tar
forums-52c7193ad0ea30f990560594c8c2ada7fd2b696b.tar.gz
forums-52c7193ad0ea30f990560594c8c2ada7fd2b696b.tar.bz2
forums-52c7193ad0ea30f990560594c8c2ada7fd2b696b.tar.xz
forums-52c7193ad0ea30f990560594c8c2ada7fd2b696b.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10846] fixing SQL query bug in acp_main.php
Diffstat (limited to 'phpBB/includes/acp/acp_main.php')
-rw-r--r--phpBB/includes/acp/acp_main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 144b225766..eb613535bf 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -210,7 +210,7 @@ class acp_main
// No maximum post id? :o
if (!$max_post_id)
{
- $sql = 'SELECT MAX(post_id)
+ $sql = 'SELECT MAX(post_id) as max_post_id
FROM ' . POSTS_TABLE;
$result = $db->sql_query($sql);
$max_post_id = (int) $db->sql_fetchfield('max_post_id');