Skip to content
Snippets Groups Projects
Unverified Commit 4acd053e authored by Julius Härtl's avatar Julius Härtl
Browse files

Do not fail if the icon file doesn't exists


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 9e1ec0cf
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment