From 904e72c7367910490941131391d80d0d11cd0288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Turan=20Karatu=C4=9F?= Date: Thu, 10 Oct 2024 15:50:46 +0300 Subject: [PATCH] Check if constant is already defined before. --- src/EasyPdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyPdf.php b/src/EasyPdf.php index 539d54b..40e7267 100755 --- a/src/EasyPdf.php +++ b/src/EasyPdf.php @@ -45,7 +45,7 @@ class EasyPdf */ public function __construct(?string $imagePath = null) { - if ($imagePath !== null) { + if ($imagePath !== null && !defined('K_PATH_IMAGES')) { define('K_PATH_IMAGES', $imagePath); }