Skip to content

Commit

Permalink
fix: Skip early if font file path is not existing
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Feb 5, 2025
1 parent 0ab7a84 commit 78a2303
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Service/FontService.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ private function generateFontOverview(ISimpleFile $fontFile): void {
// but just a file path
$tmpFontFile = tmpfile();
$tmpFontFilePath = stream_get_meta_data($tmpFontFile)['uri'];
if (!file_exists($tmpFontFilePath)) {
return;
}
fwrite($tmpFontFile, $fontFile->getContent());
fflush($tmpFontFile);

Expand Down

0 comments on commit 78a2303

Please sign in to comment.