Fixed issue in ipb4 import
authorMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 14:00:29 +0000 (16:00 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 14:00:29 +0000 (16:00 +0200)
files/lib/system/exporter/IPB4xExporter.class.php

index ace709d6011b2f2c751c0d72883a1e90cb11e5e7..a35b6a38ebc96594a4dc6e3213e792d62ca389d6 100644 (file)
@@ -649,7 +649,7 @@ class IPB4xExporter extends AbstractExporter {
                                'isClosed' => ($row['state'] == 'close' ? 1 : 0),
                                'movedThreadID' => ($row['moved_to'] ? intval($row['moved_to']) : null),
                                'movedTime' => $row['moved_on'],
-                               'lastPostTime' => $row['last_post']
+                               'lastPostTime' => ($row['last_post'] ?: 0)
                        );
                        $additionalData = array();
                        if (isset($tags[$row['tid']])) $additionalData['tags'] = $tags[$row['tid']];