From a4f60e483c129cfc506dc03e68a47bc9dbdcc326 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 Feb 2012 15:17:55 +0100 Subject: [PATCH] Files are now properly logged on installation Fixes #413 --- .../files/lib/system/package/FilesFileHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (?, ?)"; -- 2.20.1