mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
fixed invalid font substr
This commit is contained in:
parent
230405214f
commit
e05fbdd8d8
@ -106,7 +106,7 @@ class pdf extends TCPDF {
|
||||
$fontfiles = $this->_getfontfiles(PDF_CUSTOM_FONT_PATH);
|
||||
|
||||
if (count($fontfiles) == 1) {
|
||||
$autofontname = substr($fontfile[0], 0, -4);
|
||||
$autofontname = substr($fontfiles[0], 0, -4);
|
||||
$this->AddFont($autofontname, '', $autofontname.'.php');
|
||||
$this->SetFont($autofontname);
|
||||
} else if (count($fontfiles == 0)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user