summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-12 17:31:54 +0100
committerJulius Härtl <jus@bitgrid.net>2018-11-12 17:31:54 +0100
commit4acd053e4d2d09b28848af69c4ed32d18f9b1ee8 (patch)
treeddd72ab917926c8942715b80b217eb5d131f4af1 /lib
parent9e1ec0cf46055dbf08a139124d292eb38b8aebd2 (diff)
downloadnextcloud-server-4acd053e4d2d09b28848af69c4ed32d18f9b1ee8.tar.gz
nextcloud-server-4acd053e4d2d09b28848af69c4ed32d18f9b1ee8.zip
Do not fail if the icon file doesn't exists
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/IconsCacher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Template/IconsCacher.php b/lib/private/Template/IconsCacher.php
index 1020cd24dcd..aab3295405d 100644
--- a/lib/private/Template/IconsCacher.php
+++ b/lib/private/Template/IconsCacher.php
@@ -120,8 +120,8 @@ class IconsCacher {
$list .= "--$icon: url('$url');";
list($location,$color) = $this->parseUrl($url);
$svg = false;
- if ($location !== '') {
- $svg = file_get_contents($location);
+ if ($location !== '' && \file_exists($location)) {
+ $svg = \file_get_contents($location);
}
if ($svg === false) {
$this->logger->debug('Failed to get icon file ' . $location);