summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/IconsCacher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Template/IconsCacher.php')
-rw-r--r--lib/private/Template/IconsCacher.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Template/IconsCacher.php b/lib/private/Template/IconsCacher.php
index e5dd8633079..c91bf13ad53 100644
--- a/lib/private/Template/IconsCacher.php
+++ b/lib/private/Template/IconsCacher.php
@@ -112,7 +112,10 @@ class IconsCacher {
foreach ($icons as $icon => $url) {
$list .= "--$icon: url('$url');";
list($location,$color) = $this->parseUrl($url);
- $svg = file_get_contents($location);
+ $svg = false;
+ if ($location !== '') {
+ $svg = file_get_contents($location);
+ }
if ($svg === false) {
$this->logger->debug('Failed to get icon file ' . $location);
$data .= "--$icon: url('$url');";