1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 18:26:32 +02:00

Merge remote-tracking branch 'Senky/ticket/10846' into develop-olympus

* Senky/ticket/10846:
  [ticket/10846] fixing SQL query bug in acp_main.php
This commit is contained in:
Andreas Fischer
2012-05-01 13:38:11 +02:00

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