mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Couple of minor issues
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3229 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
520cade040
commit
3ef2edbd0b
1 changed files with 2 additions and 2 deletions
|
@ -669,14 +669,14 @@ switch( $mode )
|
||||||
|
|
||||||
$sql = "SELECT poster_id, topic_id, post_time
|
$sql = "SELECT poster_id, topic_id, post_time
|
||||||
FROM " . POSTS_TABLE . "
|
FROM " . POSTS_TABLE . "
|
||||||
WHERE post_id = " . $posts[0];
|
WHERE post_id = " . intval($posts[0]);
|
||||||
if ( !($result = $db->sql_query($sql)) )
|
if ( !($result = $db->sql_query($sql)) )
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_rowset = $db->sql_fetchrow($result);
|
$post_rowset = $db->sql_fetchrow($result);
|
||||||
$first_poster = str_replace("\'", "''", $post_rowset['poster_id']);
|
$first_poster = $post_rowset['poster_id'];
|
||||||
$topic_id = $post_rowset['topic_id'];
|
$topic_id = $post_rowset['topic_id'];
|
||||||
$post_time = $post_rowset['post_time'];
|
$post_time = $post_rowset['post_time'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue