From c7103c21d31154f9279e38f2d9fd384e5486b338 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 12 Feb 2009 22:56:22 +0000 Subject: [PATCH] [Fix] SQL-Error: "post_msg_id" was not defined (in functions.php) --- root/portal/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/portal/includes/functions.php b/root/portal/includes/functions.php index 78b4f635..d72feca4 100644 --- a/root/portal/includes/functions.php +++ b/root/portal/includes/functions.php @@ -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 *