From e38082c2fda3162aab695eb9631497703e0222f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 3 Aug 2022 14:56:39 +0200 Subject: [PATCH] Fix use of `->prepare()` in FilesFileHandler see 01ec69848a725e649b045f26cd16720581071076 --- .../files/lib/system/package/FilesFileHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php index 37f9de5e19..539eddef3c 100644 --- a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php @@ -33,9 +33,9 @@ class FilesFileHandler extends PackageInstallationFileHandler $conditions->add('application = ?', [$this->application]); $sql = "SELECT filename, packageID - FROM wcf" . WCF_N . "_package_installation_file_log - " . $conditions; - $statement = WCF::getDB()->prepareStatement($sql); + FROM wcf1_package_installation_file_log + {$conditions}"; + $statement = WCF::getDB()->prepare($sql); $statement->execute($conditions->getParameters()); $lockedFiles = $statement->fetchMap('filename', 'packageID'); @@ -69,7 +69,7 @@ class FilesFileHandler extends PackageInstallationFileHandler VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE sha256 = VALUES(sha256), lastUpdated = VALUES(lastUpdated)"; - $statement = WCF::getDB()->prepareStatement($sql); + $statement = WCF::getDB()->prepare($sql); WCF::getDB()->beginTransaction(); foreach ($files as $file) { -- 2.20.1