Fix broken gdpr export
authorMarcel Werk <burntime@woltlab.com>
Wed, 27 Dec 2023 11:56:40 +0000 (12:56 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 27 Dec 2023 11:56:40 +0000 (12:56 +0100)
The export generated an error if the Filebase was installed, as a table that no longer existed was accessed.

wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php

index 1a4a12c5228d2f0cbb9503226a890befda423940..677409f2c1eb9698dc857d6fc60adaf7c9f5934d 100644 (file)
@@ -227,16 +227,6 @@ final class UserExportGdprAction extends AbstractAction
             }
         }
 
-        if (PackageCache::getInstance()->getPackageByIdentifier('com.woltlab.filebase') !== null) {
-            if (!isset($this->data['com.woltlab.filebase'])) {
-                $this->data['com.woltlab.filebase'] = [];
-            }
-            $this->data['com.woltlab.filebase']['filePaymentLog'] = $this->dumpTable(
-                'filebase' . WCF_N . '_file_payment_log',
-                'userID'
-            );
-        }
-
         $this->data['@@generatedAt'] = TIME_NOW;
 
         $this->executed();