From 43abe7607641f3560952b28fd08c3b03765d7577 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 16 Jul 2011 08:19:23 -0700 Subject: [PATCH] Use it the way RouL suggested. --- wcfsetup/install/files/lib/util/DirectoryUtil.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php index 6e01af6d5e..315d6820a8 100644 --- a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php +++ b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php @@ -149,7 +149,7 @@ class DirectoryUtil { // sort out non matching files if (!empty($pattern)) { foreach ($files as $filename => $value) { - if (!preg_match($pattern, $filename) == $negativeMatch) unset($files[$filename]); + if (preg_match($pattern, $filename) != $negativeMatch) unset($files[$filename]); } } @@ -185,7 +185,7 @@ class DirectoryUtil { // sort out non matching files if (!empty($pattern)) { foreach ($objects as $filename => $value) { - if (!preg_match($pattern, $filename) == $negativeMatch) unset($objects[$filename]); + if (preg_match($pattern, $filename) != $negativeMatch) unset($objects[$filename]); } } -- 2.20.1