Fix issue w/ deleted users in conversations (MyBB)
authorTim Düsterhus <timwolla@googlemail.com>
Wed, 4 Dec 2013 13:10:48 +0000 (14:10 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Wed, 4 Dec 2013 13:10:48 +0000 (14:10 +0100)
files/lib/system/exporter/MyBB16xExporter.class.php

index 1dac33a3d19c93b85445735f23d98e1519970a3f..2496219559dd171cc80cb842bf16b8ef5ac7290e 100644 (file)
@@ -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,