diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-05-01 13:38:11 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-05-01 13:38:11 +0200 |
commit | 8cb0e30afc54b419450c8144ae1e80c6b8f9826a (patch) | |
tree | f40243cde9615deda4eeac71a060c076acdef9f5 | |
parent | 3a67604900a5301c133bfb0bf8f2d998306c3827 (diff) | |
parent | 665f38d42f8692f5eab76348568ddb46b372492d (diff) | |
download | forums-8cb0e30afc54b419450c8144ae1e80c6b8f9826a.tar forums-8cb0e30afc54b419450c8144ae1e80c6b8f9826a.tar.gz forums-8cb0e30afc54b419450c8144ae1e80c6b8f9826a.tar.bz2 forums-8cb0e30afc54b419450c8144ae1e80c6b8f9826a.tar.xz forums-8cb0e30afc54b419450c8144ae1e80c6b8f9826a.zip |
Merge remote-tracking branch 'Senky/ticket/10846' into develop-olympus
* Senky/ticket/10846:
[ticket/10846] fixing SQL query bug in acp_main.php
-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'); |