Fixed Copy&Paste-Error
authorMatthias Schmidt <gravatronics@live.com>
Mon, 25 Jul 2011 18:17:46 +0000 (20:17 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 25 Jul 2011 18:17:46 +0000 (20:17 +0200)
wcfsetup/install/files/lib/util/DirectoryUtil.class.php

index 1d184936ad39faab7da2e78872148fbccb8dea6e..1b5c427bfe538cac40ffc9a996137d8b067ce682 100644 (file)
@@ -152,7 +152,7 @@ class DirectoryUtil {
                // sort out non matching files
                if (!empty($pattern)) {
                        foreach ($files as $filename => $value) {
-                               if (((bool) preg_match($pattern, $filename)) == $negativeMatch) unset($objects[$filename]);
+                               if (((bool) preg_match($pattern, $filename)) == $negativeMatch) unset($files[$filename]);
                        }
                }