Skip to content

Commit

Permalink
Merge pull request #177 from regentcollege/avoid-redefining-constant
Browse files Browse the repository at this point in the history
avoid redefining constant
  • Loading branch information
codedge authored Sep 14, 2022
2 parents 8810a70 + efb47c2 commit e2bc983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FpdfServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function register()
*/
public function registerFpdf()
{
if(config('fpdf.font_path') !== null) {
if(config('fpdf.font_path') !== null && !defined('FPDF_FONTPATH')) {
define('FPDF_FONTPATH', config('fpdf.font_path'));
}

Expand Down

0 comments on commit e2bc983

Please sign in to comment.