Skip to content

Commit 2733c61

Browse files
author
\nrlucke
committed
fix #272
1 parent 49ef703 commit 2733c61

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

models/courseware/PdfExportHelperTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ private function getRasteredIcon($color, $icon, $size = 20)
1414
$color,
1515
$icon
1616
);
17-
$iconSvg = file_get_contents($iconFilename);
17+
18+
$iconSvg = @file_get_contents($iconFilename);
19+
if (!$iconSvg) {
20+
return false;
21+
}
1822
$image = SVG::fromString($iconSvg);
1923
$rasterImage = $image->toRasterImage($size, $size, "white");
2024

0 commit comments

Comments
 (0)