Merge branch 'develop-olympus' into develop

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

View file

@ -210,7 +210,7 @@ class acp_main
// No maximum post id? :o // No maximum post id? :o
if (!$max_post_id) if (!$max_post_id)
{ {
$sql = 'SELECT MAX(post_id) $sql = 'SELECT MAX(post_id) as max_post_id
FROM ' . POSTS_TABLE; FROM ' . POSTS_TABLE;
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$max_post_id = (int) $db->sql_fetchfield('max_post_id'); $max_post_id = (int) $db->sql_fetchfield('max_post_id');