aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorSenky <jakubsenko@gmail.com>2012-04-30 22:01:53 +0200
committerSenky <jakubsenko@gmail.com>2012-04-30 22:01:53 +0200
commit665f38d42f8692f5eab76348568ddb46b372492d (patch)
treef40243cde9615deda4eeac71a060c076acdef9f5 /phpBB/includes/acp
parent3a67604900a5301c133bfb0bf8f2d998306c3827 (diff)
downloadforums-665f38d42f8692f5eab76348568ddb46b372492d.tar
forums-665f38d42f8692f5eab76348568ddb46b372492d.tar.gz
forums-665f38d42f8692f5eab76348568ddb46b372492d.tar.bz2
forums-665f38d42f8692f5eab76348568ddb46b372492d.tar.xz
forums-665f38d42f8692f5eab76348568ddb46b372492d.zip
[ticket/10846] fixing SQL query bug in acp_main.php
PHPBB3-10846
Diffstat (limited to 'phpBB/includes/acp')
-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 e529ae0e5a..cffe296651 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -201,7 +201,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');