From 3ef2edbd0bc4f83f685daa80e02a450922cffa87 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 22 Dec 2002 12:44:25 +0000 Subject: [PATCH] Couple of minor issues git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3229 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 314d8ccd3a..06e970a247 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -669,14 +669,14 @@ switch( $mode ) $sql = "SELECT poster_id, topic_id, post_time FROM " . POSTS_TABLE . " - WHERE post_id = " . $posts[0]; + WHERE post_id = " . intval($posts[0]); if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql); } $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']; $post_time = $post_rowset['post_time'];