Fix export of conversation users in vB
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 15 Dec 2013 16:36:22 +0000 (17:36 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 15 Dec 2013 16:36:22 +0000 (17:36 +0100)
see http://www.woltlab.com/forum/index.php/Thread/218118-vBulletin-Fehler-username-cannot-be-null/

files/lib/system/exporter/VB3or4xExporter.class.php

index a9214049334c277b4816996f13ad15ce45bc93d5..0f9180881f59e37f709bd747f4e10a45ec563181 100644 (file)
@@ -694,7 +694,7 @@ class VB3or4xExporter extends AbstractExporter {
                        ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation.user')->import(0, array(
                                'conversationID' => ($row['parentpmid'] ?: $row['pmid']),
                                'participantID' => $row['userid'],
-                               'username' => $row['username'],
+                               'username' => $row['username'] ?: '',
                                'hideConversation' => 0, // there is no trash
                                'isInvisible' => (isset($recipients['bcc']) && isset($recipients['bcc'][$row['userid']])) ? 1 : 0,
                                'lastVisitTime' => $row['messageread'] ? $row['dateline'] : 0