From ff9adc1587f9f04547669b36a5f84eb3a996c846 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 21 May 2013 02:16:18 +0200 Subject: [PATCH] Fixes file log --- .../install/files/lib/system/package/FilesFileHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php index 5e5be6be0b..e2f06546ee 100644 --- a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php @@ -63,7 +63,7 @@ class FilesFileHandler extends PackageInstallationFileHandler { // insert 50 files per loop for ($i = 0, $steps = ceil(count($files) / 50); $i < $steps; $i++) { - $items = array_slice($files, 0, 50); + $items = array_slice($files, $i, 50); $sql = "INSERT IGNORE INTO wcf".WCF_N."_package_installation_file_log (packageID, filename, application) VALUES ".substr(str_repeat("(".$this->packageInstallation->getPackageID().", ?, '".$this->application."'), ", count($items)), 0, -2); -- 2.20.1