From 18a3e0c0f4e53c4528b64c4b8acd4b42747cc275 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 5 Feb 2019 12:32:23 -0500 Subject: [PATCH] Fix html2pdf default PDF format when multiple pdf_format are available. --- CRM/Utils/PDF/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index 1a7d449621..61e5ee781f 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -61,7 +61,7 @@ class CRM_Utils_PDF_Utils { // PDF Page Format parameters passed in $format = array_merge($format, $pdfFormat); } - else { + elseif (!empty($pdfFormat)) { // PDF Page Format ID passed in $format = CRM_Core_BAO_PdfFormat::getById($pdfFormat); } -- 2.25.1