From 50220374ca798d49f28d24fd6586b0896ac0fe8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 5 Sep 2023 11:24:59 +0200 Subject: [PATCH] vB 3/4: Unify `isDisabled` check in exportPosts() with exportThreads() --- files/lib/system/exporter/VB3or4xExporter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index 833cc7e..25c6af8 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -1432,7 +1432,7 @@ class VB3or4xExporter extends AbstractExporter 'message' => self::fixBBCodes($row['pagetext']), 'time' => $row['dateline'], 'isDeleted' => $row['visible'] == 2 ? 1 : 0, - 'isDisabled' => $row['visible'] == 0 ? 1 : 0, + 'isDisabled' => \in_array($row['visible'], [1, 2]) ? 0 : 1, 'isClosed' => 0, 'editorID' => $row['editorID'] ?: null, 'editor' => $row['editor'] ?: '', -- 2.20.1