From a8efa721823053369030892b94163c4ccf2f28f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 5 Sep 2023 11:24:42 +0200 Subject: [PATCH] vB 3/4: Do not import deleted threads as disabled --- files/lib/system/exporter/VB3or4xExporter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index ad2ebc1..833cc7e 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -1353,9 +1353,9 @@ class VB3or4xExporter extends AbstractExporter 'views' => $row['views'], 'isAnnouncement' => 0, 'isSticky' => $row['sticky'], - 'isDisabled' => $row['visible'] == 1 ? 0 : 1, // visible = 2 is deleted - 'isClosed' => $row['open'] == 1 ? 0 : 1, // open = 10 is redirect + 'isDisabled' => \in_array($row['visible'], [1, 2]) ? 0 : 1, 'isDeleted' => $row['visible'] == 2 ? 1 : 0, + 'isClosed' => $row['open'] == 1 ? 0 : 1, // open = 10 is redirect // target thread is saved in pollid... 'movedThreadID' => ($row['open'] == 10 && $row['pollid']) ? $row['pollid'] : null, 'movedTime' => 0, -- 2.20.1