From 6453732ec543d26b380b519002eaab11580c1a03 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Tue, 26 Jan 2010 11:57:07 +0000 Subject: Allow emails without body text to be imported. --- admin/boardsync_inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin/boardsync_inc.php b/admin/boardsync_inc.php index eee3989..d8d25d6 100644 --- a/admin/boardsync_inc.php +++ b/admin/boardsync_inc.php @@ -426,6 +426,17 @@ function board_sync_process_message( $pMbox, $pMsgNum, $pMsgHeader, $pMsgStructu // End check to add attachments to comments to the parent board + // Check for an empty body + // Duplicate subject if we have it + if (empty($storeRow['edit'])) { + if (!empty($storeRow['title'])) { + $storeRow['edit'] = $storeRow['title']; + } + else { + $storeRow['edit'] = "."; + } + } + $storeComment = new LibertyComment( NULL ); $gBitDb->StartTrans(); -- cgit v1.3