1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-13 19:15:20 +02:00

[ticket/10846] fixing SQL query bug in acp_main.php

PHPBB3-10846
This commit is contained in:
Senky 2012-04-30 22:01:53 +02:00
parent 3a67604900
commit 665f38d42f

View File

@ -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');