Files are now properly logged on installation
authorAlexander Ebert <ebert@woltlab.com>
Fri, 10 Feb 2012 14:17:55 +0000 (15:17 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 10 Feb 2012 14:17:55 +0000 (15:17 +0100)
Fixes #413

wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php

index 20e602049fe2d2121f1f3d52ad3c5c8872e4bbff..e2a7b72b75c456415bfc58a4c147ed024dd2944c 100644 (file)
@@ -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          (?, ?)";