aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorMarek A. R <aptx@phpbb.com>2008-04-02 21:46:47 +0000
committerMarek A. R <aptx@phpbb.com>2008-04-02 21:46:47 +0000
commit4879a7a075deb378a594cb9001dbf0ce36412519 (patch)
tree7bed8afdb086bebcd9d4135e05bacb37a1902681 /phpBB/develop
parentc5081a685ee9321db57c28a381e034241a13093e (diff)
downloadforums-4879a7a075deb378a594cb9001dbf0ce36412519.tar
forums-4879a7a075deb378a594cb9001dbf0ce36412519.tar.gz
forums-4879a7a075deb378a594cb9001dbf0ce36412519.tar.bz2
forums-4879a7a075deb378a594cb9001dbf0ce36412519.tar.xz
forums-4879a7a075deb378a594cb9001dbf0ce36412519.zip
Some fixes
git-svn-id: file:///svn/phpbb/trunk@8488 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop')
-rw-r--r--phpBB/develop/posting-api.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/develop/posting-api.php b/phpBB/develop/posting-api.php
index 2029ffc3d3..fceabf57f0 100644
--- a/phpBB/develop/posting-api.php
+++ b/phpBB/develop/posting-api.php
@@ -105,7 +105,7 @@ class posting_api
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $forum_id;
$result = $db->sql_query($sql);
- $row = $db->sql_fetchrow($query);
+ $row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// everything starts out normal, one way or another
@@ -234,7 +234,7 @@ class posting_api
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $forum_id;
$result = $db->sql_query($sql);
- $row = $db->sql_fetchrow($query);
+ $row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// everything starts out normal, one way or another
@@ -287,7 +287,7 @@ class posting_api
{
$forum_data['forum_last_poster_name'] = $username;
$forum_data['forum_last_user_id'] = $user_id;
- $forum_data['forum_last_post_title'] = $topic_title;
+ $forum_data['forum_last_post_title'] = $post_title;
$forum_data['forum_last_post_time'] = $time;
}
else