From: Alexander Ebert Date: Fri, 12 Apr 2013 19:16:38 +0000 (+0200) Subject: Fixed bogus PHP error X-Git-Tag: 2.0.0_Beta_1~370^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b46469c6484719b93309c3dfba5a7b2602265f6;p=GitHub%2FWoltLab%2FWCF.git Fixed bogus PHP error Fixes #1200 --- diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index c6943436bc..f59c261165 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -166,14 +166,18 @@ class StyleHandler extends SingletonFactory { public static function resetStylesheets() { // frontend stylesheets $stylesheets = glob(WCF_DIR.'style/style-*.css'); - foreach ($stylesheets as $stylesheet) { - @unlink($stylesheet); + if ($stylesheets !== false) { + foreach ($stylesheets as $stylesheet) { + @unlink($stylesheet); + } } // ACP stylesheets $stylesheets = glob(WCF_DIR.'acp/style/style*.css'); - foreach ($stylesheets as $stylesheet) { - @unlink($stylesheet); + if ($stylesheets !== false) { + foreach ($stylesheets as $stylesheet) { + @unlink($stylesheet); + } } } }