mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
fixed invalid font substr
This commit is contained in:
parent
230405214f
commit
e05fbdd8d8
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class pdf extends TCPDF {
|
||||||
$fontfiles = $this->_getfontfiles(PDF_CUSTOM_FONT_PATH);
|
$fontfiles = $this->_getfontfiles(PDF_CUSTOM_FONT_PATH);
|
||||||
|
|
||||||
if (count($fontfiles) == 1) {
|
if (count($fontfiles) == 1) {
|
||||||
$autofontname = substr($fontfile[0], 0, -4);
|
$autofontname = substr($fontfiles[0], 0, -4);
|
||||||
$this->AddFont($autofontname, '', $autofontname.'.php');
|
$this->AddFont($autofontname, '', $autofontname.'.php');
|
||||||
$this->SetFont($autofontname);
|
$this->SetFont($autofontname);
|
||||||
} else if (count($fontfiles == 0)) {
|
} else if (count($fontfiles == 0)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue