summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2010-01-26 11:57:07 +0000
committerNick Palmer <nick@sluggardy.net>2010-01-26 11:57:07 +0000
commit6453732ec543d26b380b519002eaab11580c1a03 (patch)
tree6c65bdedb838b8528b3389558f5a9783b46f48ba /admin
parent61dd168d55ae2417cce41a50ac02602afe3a243a (diff)
downloadboards-6453732ec543d26b380b519002eaab11580c1a03.tar.gz
boards-6453732ec543d26b380b519002eaab11580c1a03.tar.bz2
boards-6453732ec543d26b380b519002eaab11580c1a03.zip
Allow emails without body text to be imported.
Diffstat (limited to 'admin')
-rw-r--r--admin/boardsync_inc.php11
1 files changed, 11 insertions, 0 deletions
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();