vB 3/4: Unify `isDisabled` check in exportPosts() with exportThreads()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 09:24:59 +0000 (11:24 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 09:24:59 +0000 (11:24 +0200)
files/lib/system/exporter/VB3or4xExporter.class.php

index 833cc7eff068455993ce90444f00d1b8b858661e..25c6af84bc75a1023f24d07115826cca77b97bab 100644 (file)
@@ -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'] ?: '',