Remove `$destVersion52`
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 21 Dec 2023 09:48:01 +0000 (10:48 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 21 Dec 2023 09:48:01 +0000 (10:48 +0100)
files/lib/system/exporter/WBB4xExporter.class.php

index 7012080b3c8adfb4245288ea9deec9e5b3984038..454b0f6c875dc0462e1bd04c5fa5f1dafdb478a3 100644 (file)
@@ -2170,7 +2170,7 @@ final class WBB4xExporter extends AbstractExporter
         $conditionBuilder = new PreparedStatementConditionBuilder();
         $conditionBuilder->add('entry.entryID IN (?)', [$entryIDs]);
 
-        if ($sourceVersion52 && $destVersion52) {
+        if ($sourceVersion52) {
             $sql = "SELECT      entry.*, language.languageCode, coverPhoto.fileExtension, coverPhoto.fileHash
                 FROM        blog" . $this->dbNo . "_entry entry
                 LEFT JOIN   wcf" . $this->dbNo . "_language language
@@ -2743,7 +2743,7 @@ final class WBB4xExporter extends AbstractExporter
         // get event
         $conditionBuilder = new PreparedStatementConditionBuilder();
         $conditionBuilder->add('event.eventID IN (?)', [$eventIDs]);
-        if ($sourceVersion52 && $destVersion52) {
+        if ($sourceVersion52) {
             $sql = "SELECT      event.*, language.languageCode, coverPhoto.fileExtension, coverPhoto.fileHash
                 FROM        calendar" . $this->dbNo . "_event event
                 LEFT JOIN   wcf" . $this->dbNo . "_language language