'username' => $row['starter_name'],
'views' => $row['views'],
'isSticky' => $row['pinned'],
- 'isDisabled' => ($row['approved'] == 0 ? 1 : 0),
- 'isClosed' => ($row['state'] == 'close' ? 1 : 0),
- 'movedThreadID' => ($row['moved_to'] ? intval($row['moved_to']) : null),
+ 'isDisabled' => $row['approved'] == 0 ? 1 : 0,
+ '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();
+ ];
+ $additionalData = [];
if (isset($tags[$row['tid']])) $additionalData['tags'] = $tags[$row['tid']];
ImportHandler::getInstance()->getImporter('com.woltlab.wbb.thread')->import($row['tid'], $data, $additionalData);