From 5a866d524925fcf68c13ea7dd29f95fa40d5e218 Mon Sep 17 00:00:00 2001 From: David M Date: Wed, 9 May 2007 18:43:16 +0000 Subject: [PATCH] remove useless variable that caused some undefined errors git-svn-id: file:///svn/phpbb/trunk@7518 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index c266870b87..20b624ef2b 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -131,8 +131,7 @@ function update_post_information($type, $ids, $return_update_sql = false) FROM ' . POSTS_TABLE . " p $topic_join WHERE " . $db->sql_in_set('p.' . $type . '_id', $ids) . " $topic_condition - AND p.post_approved = 1 - $min_post_id_sql"; + AND p.post_approved = 1"; } else { @@ -141,7 +140,6 @@ function update_post_information($type, $ids, $return_update_sql = false) WHERE " . $db->sql_in_set('p.' . $type . '_id', $ids) . " $topic_condition AND p.post_approved = 1 - $min_post_id_sql GROUP BY p.{$type}_id"; } $result = $db->sql_query($sql);