Skip to content

Commit e2bc983

Browse files
authored
Merge pull request #177 from regentcollege/avoid-redefining-constant
avoid redefining constant
2 parents 8810a70 + efb47c2 commit e2bc983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FpdfServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function register()
4343
*/
4444
public function registerFpdf()
4545
{
46-
if(config('fpdf.font_path') !== null) {
46+
if(config('fpdf.font_path') !== null && !defined('FPDF_FONTPATH')) {
4747
define('FPDF_FONTPATH', config('fpdf.font_path'));
4848
}
4949

0 commit comments

Comments
 (0)