From ef04e6176de59af7b48bb156008f8275359a816e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 21 May 2013 02:18:35 +0200 Subject: [PATCH] Fixes file logging --- .../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 e2f06546ee..9491d3bde3 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, $i, 50); + $items = array_slice($files, $i * 50, 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