From: Tim Düsterhus Date: Wed, 4 Dec 2013 13:10:48 +0000 (+0100) Subject: Fix issue w/ deleted users in conversations (MyBB) X-Git-Tag: 2.0.0_RC_4~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b2148c5aab8deefda8833025ca0626d0558db47;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix issue w/ deleted users in conversations (MyBB) --- diff --git a/files/lib/system/exporter/MyBB16xExporter.class.php b/files/lib/system/exporter/MyBB16xExporter.class.php index 1dac33a..2496219 100644 --- a/files/lib/system/exporter/MyBB16xExporter.class.php +++ b/files/lib/system/exporter/MyBB16xExporter.class.php @@ -602,14 +602,14 @@ class MyBB16xExporter extends AbstractExporter { 'subject' => $row['subject'], 'time' => $row['dateline'], 'userID' => $row['fromid'], - 'username' => $row['username'], + 'username' => $row['username'] ?: '', 'isDraft' => $row['isDraft'] )); ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation.message')->import($row['pmid'], array( 'conversationID' => $row['fromid'].'-'.$row['dateline'], 'userID' => $row['fromid'], - 'username' => $row['username'], + 'username' => $row['username'] ?: '', 'message' => self::fixBBCodes($row['message']), 'time' => $row['dateline'], 'enableSmilies' => $row['smilieoff'] ? 0 : 1,