From 5fbadee95ff11429739dc7cf818d93d0c549a73f Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Fri, 9 Dec 2016 12:44:01 +0100 Subject: Check if image files for theming are empty Signed-off-by: Julius Haertl --- apps/theming/lib/IconBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/theming/lib/IconBuilder.php') diff --git a/apps/theming/lib/IconBuilder.php b/apps/theming/lib/IconBuilder.php index 9cf0d051304..205ee3a89a0 100644 --- a/apps/theming/lib/IconBuilder.php +++ b/apps/theming/lib/IconBuilder.php @@ -172,7 +172,7 @@ class IconBuilder { return false; } $svg = file_get_contents($imageFile); - if ($svg !== false) { + if ($svg !== false && $svg !== "") { $color = $this->util->elementColor($this->themingDefaults->getMailHeaderColor()); $svg = $this->util->colorizeSvg($svg, $color); return $svg; -- cgit v1.2.3