diff options
author | Senky <jakubsenko@gmail.com> | 2012-04-30 22:01:53 +0200 |
---|---|---|
committer | Senky <jakubsenko@gmail.com> | 2012-04-30 22:01:53 +0200 |
commit | 665f38d42f8692f5eab76348568ddb46b372492d (patch) | |
tree | f40243cde9615deda4eeac71a060c076acdef9f5 /phpBB/includes/acp | |
parent | 3a67604900a5301c133bfb0bf8f2d998306c3827 (diff) | |
download | forums-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.php | 2 |
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'); |