diff options
| author | David M <davidmj@users.sourceforge.net> | 2006-05-16 22:14:59 +0000 |
|---|---|---|
| committer | David M <davidmj@users.sourceforge.net> | 2006-05-16 22:14:59 +0000 |
| commit | 68e374067b527ba8b670d53e5879112cf7f67872 (patch) | |
| tree | d9b5af08e903d27b257fececdb822cd9c68a5a21 /phpBB/viewtopic.php | |
| parent | d52e31a4891a96d97157a36c266a0e81e198aa6a (diff) | |
| download | forums-68e374067b527ba8b670d53e5879112cf7f67872.tar forums-68e374067b527ba8b670d53e5879112cf7f67872.tar.gz forums-68e374067b527ba8b670d53e5879112cf7f67872.tar.bz2 forums-68e374067b527ba8b670d53e5879112cf7f67872.tar.xz forums-68e374067b527ba8b670d53e5879112cf7f67872.zip | |
Firebird!
git-svn-id: file:///svn/phpbb/trunk@5918 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 98f5603a6e..c8c325f970 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -239,7 +239,7 @@ if (!($topic_data = $db->sql_fetchrow($result))) // This is for determining where we are (page) if ($post_id) { - $sql = "SELECT count(*) AS prev_posts + $sql = "SELECT COUNT(*) AS prev_posts FROM " . POSTS_TABLE . " p WHERE p.post_approved = 1 AND p.topic_id = {$topic_data['topic_id']} |
