[Fix] SQL-Error: "post_msg_id" was not defined (in functions.php)

This commit is contained in:
Christian
2009-02-12 22:56:22 +00:00
parent ddbe258030
commit c7103c21d3

View File

@@ -271,7 +271,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
{
$attachments = array();
if( $config['allow_attachments'] )
if( $config['allow_attachments'] && $row['post_id'] )
{
// Pull attachment data
$sql2 = 'SELECT *