diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-09-26 19:59:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-09-26 19:59:41 +0000 |
commit | 734492958eaa2f193db304fd5d4cf050390eff1a (patch) | |
tree | 37f19f2dd765fd45024bcd9180e729b79c9a430a /phpBB/includes/functions_posting.php | |
parent | e339c36ec035520ce6f3ae4c8ad69bff35eabde6 (diff) | |
download | forums-734492958eaa2f193db304fd5d4cf050390eff1a.tar forums-734492958eaa2f193db304fd5d4cf050390eff1a.tar.gz forums-734492958eaa2f193db304fd5d4cf050390eff1a.tar.bz2 forums-734492958eaa2f193db304fd5d4cf050390eff1a.tar.xz forums-734492958eaa2f193db304fd5d4cf050390eff1a.zip |
These changes should let olympus scale a little bit better.
i haven't adjusted the schemas but added the details to create_schema_files - david is able to build them then in line with his changes. :)
git-svn-id: file:///svn/phpbb/trunk@6411 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 1518f1d1e5..50b1a138c4 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -117,15 +117,15 @@ function update_post_information($type, $ids, $return_update_sql = false) { $sql = 'SELECT MAX(post_id) as last_post_id FROM ' . POSTS_TABLE . ' - WHERE post_approved = 1 - AND ' . $db->sql_in_set($type . '_id', $ids); + WHERE ' . $db->sql_in_set($type . '_id', $ids) . ' + AND post_approved = 1'; } else { $sql = 'SELECT ' . $type . '_id, MAX(post_id) as last_post_id FROM ' . POSTS_TABLE . ' - WHERE post_approved = 1 - AND ' . $db->sql_in_set($type . '_id', $ids) . " + WHERE ' . $db->sql_in_set($type . '_id', $ids) . " + AND post_approved = 1 GROUP BY {$type}_id"; } $result = $db->sql_query($sql); |