From: Marcel Werk Date: Thu, 25 Apr 2013 17:34:57 +0000 (+0200) Subject: Fixed small issue X-Git-Tag: 2.0.0_Beta_1~295^2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e71a06976b706f8edc94df92bc44eb67c943f12b;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index a8434c3e06..6240793d49 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -144,8 +144,10 @@ class StyleHandler extends SingletonFactory { */ public function resetStylesheet(Style $style) { $stylesheets = glob(WCF_DIR.'style/style-'.$style->styleID.'*.css'); - foreach ($stylesheets as $stylesheet) { - @unlink($stylesheet); + if ($stylesheets !== false) { + foreach ($stylesheets as $stylesheet) { + @unlink($stylesheet); + } } }