Skip to content
Snippets Groups Projects
Commit 8c641efd authored by Jared Hancock's avatar Jared Hancock
Browse files

pdf: Fix crash if PHAR extension not enabled

parent 0647b00a
No related branches found
No related tags found
No related merge requests found
......@@ -303,10 +303,11 @@ $this->mono_fonts = array('dejavusansmono','freemono','liberationmono','courier'
// Add fonts from language packs
list($phar_fonts, $phar_subs) = Internationalization::getTtfFonts();
$this->fontdata += $phar_fonts;
foreach ($phar_subs as $simple) {
if (!in_array($simple, $this->backupSubsFont))
$this->backupSubsFont[] = $simple;
if (list($phar_fonts, $phar_subs) = Internationalization::getTtfFonts()) {
$this->fontdata += $phar_fonts;
foreach ($phar_subs as $simple) {
if (!in_array($simple, $this->backupSubsFont))
$this->backupSubsFont[] = $simple;
}
}
?>
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