From: Alexander Ebert Date: Tue, 21 May 2013 00:16:18 +0000 (+0200) Subject: Fixes file log X-Git-Tag: 2.0.0_Beta_1~109 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff9adc1587f9f04547669b36a5f84eb3a996c846;p=GitHub%2FWoltLab%2FWCF.git Fixes file log --- 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);