aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/IconBuilder.php
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-12-09 12:44:01 +0100
committerJulius Haertl <jus@bitgrid.net>2016-12-09 12:54:03 +0100
commit5fbadee95ff11429739dc7cf818d93d0c549a73f (patch)
treed9d5ff9ae970d665899c32c1bea4ada7f0426faa /apps/theming/lib/IconBuilder.php
parente3b2832ee192a9cc961342420efe6ec077638461 (diff)
downloadnextcloud-server-5fbadee95ff11429739dc7cf818d93d0c549a73f.tar.gz
nextcloud-server-5fbadee95ff11429739dc7cf818d93d0c549a73f.zip
Check if image files for theming are empty
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib/IconBuilder.php')
-rw-r--r--apps/theming/lib/IconBuilder.php2
1 files changed, 1 insertions, 1 deletions
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;