mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #12420 from nextcloud/bugfix/noid/icons-cacher-not-found
Ignore icons if the file could not be found
This commit is contained in:
commit
f6fed4d54b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue