From: Tim Düsterhus Date: Sat, 16 Jul 2011 15:19:23 +0000 (-0700) Subject: Use it the way RouL suggested. X-Git-Tag: 2.0.0_Beta_1~2012^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43abe7607641f3560952b28fd08c3b03765d7577;p=GitHub%2FWoltLab%2FWCF.git Use it the way RouL suggested. --- 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]); } }