diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-10-29 13:06:55 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-10-29 13:06:55 +0100 |
commit | 34a71f57fcc6683eed969fc26e19600dfb529b53 (patch) | |
tree | 3b0f7b1800cb1550491710eed22883ff80fd726d /lib | |
parent | 4b7ef668a4c7a0cb581db83d64c4e9b5d03d8900 (diff) | |
download | nextcloud-server-34a71f57fcc6683eed969fc26e19600dfb529b53.tar.gz nextcloud-server-34a71f57fcc6683eed969fc26e19600dfb529b53.zip |
Fix tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Template/IconsCacher.php | 5 |
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');"; |