From: Alexander Ebert Date: Fri, 10 Feb 2012 14:17:55 +0000 (+0100) Subject: Files are now properly logged on installation X-Git-Tag: 2.0.0_Beta_1~1358^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4f60e483c129cfc506dc03e68a47bc9dbdcc326;p=GitHub%2FWoltLab%2FWCF.git Files are now properly logged on installation Fixes #413 --- diff --git a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php index 20e602049f..e2a7b72b75 100644 --- a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php @@ -76,14 +76,14 @@ class FilesFileHandler extends PackageInstallationFileHandler { // ignore files which have already been installed $installFiles = array(); foreach ($files as $file) { - if (in_array($file, $files)) { + if (in_array($file, $installedFiles)) { continue; } $installFiles[] = $file; } - if (!empty($installedFiles)) { + if (!empty($installFiles)) { $sql = "INSERT INTO wcf".WCF_N."_package_installation_file_log (packageID, filename) VALUES (?, ?)";