diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-12 21:13:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 21:13:19 +0100 |
commit | f6fed4d54bce6156fbb68ee6ae0937e66870d502 (patch) | |
tree | 5d97a333047e6cf0f3c9c23114d39fc4ffc8d09c /lib | |
parent | fd8eeccb15e1219a2d18fc421e741c315737c55e (diff) | |
parent | 4acd053e4d2d09b28848af69c4ed32d18f9b1ee8 (diff) | |
download | nextcloud-server-f6fed4d54bce6156fbb68ee6ae0937e66870d502.tar.gz nextcloud-server-f6fed4d54bce6156fbb68ee6ae0937e66870d502.zip |
Merge pull request #12420 from nextcloud/bugfix/noid/icons-cacher-not-found
Ignore icons if the file could not be found
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Template/IconsCacher.php | 4 |
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); |