From e71a06976b706f8edc94df92bc44eb67c943f12b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 25 Apr 2013 19:34:57 +0200 Subject: [PATCH] Fixed small issue --- .../install/files/lib/system/style/StyleHandler.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); + } } } -- 2.20.1