while ($row = $statement->fetchArray()) {
$row['isDraft'] = $row['folder'] == 3 ? 1 : 0;
- $conversationID = ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['fromid'].'-'.$row['dateline'], [
+ ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['fromid'].'-'.$row['dateline'], [
'subject' => $row['subject'],
'time' => $row['dateline'],
'userID' => $row['fromid'],
$boardIDs = $this->database->zrange('categories:cid', 0, -1);
if (!$boardIDs) throw new SystemException('Could not fetch boardIDs');
- $imported = [];
foreach ($boardIDs as $boardID) {
$row = $this->database->hgetall('category:'.$boardID);
if (!$row) throw new SystemException('Invalid board');
$statement = $this->database->prepareStatement($sql, $limit, $offset);
$statement->execute(array_merge(['profilefields.type.dropdown'], $condition->getParameters()));
while ($row = $statement->fetchArray()) {
- $selectOptions = '';
switch ($row['field_type']) {
case 'profilefields.type.int':
$type = 'integer';
$outputClass = 'wcf\system\option\user\SelectOptionsUserOptionOutput';
break;
case 'profilefields.type.googleplus':
- $outputClass = 'wcf\system\option\user\GooglePlusUserOptionOutput';
+ $outputClass = 'wcf\system\option\user\GooglePlusUserOptionOutput';
break;
case 'profilefields.type.url':
- $outputClass = 'wcf\system\option\user\URLUserOptionOutput';
+ $outputClass = 'wcf\system\option\user\URLUserOptionOutput';
break;
default:
$outputClass = '';
$statement = $this->database->prepareStatement($sql, $limit, $offset);
$statement->execute([5]);
while ($row = $statement->fetchArray()) {
- $selectOptions = '';
switch ($row['field_type']) {
case 1:
$type = 'integer';
$statement = $this->database->prepareStatement($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
- $conversationID = ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['privatemessageid'], [
+ ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['privatemessageid'], [
'subject' => $row['subject'],
'time' => $row['sendtime'],
'userID' => $row['senderid'],
}
$languageCode = '';
- $countryCode = '';
- if ($row['language_code']) list($languageCode, $countryCode) = explode('-', $row['language_code'], 2);
+ if ($row['language_code']) list($languageCode, ) = explode('-', $row['language_code'], 2);
$additionalData = [
'groupIDs' => explode(',', $row['secondary_group_ids'].','.$row['user_group_id']),