X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FPdfFormat.php;h=60b7739a4b3127b91125a7b1619cb68d0bc56515;hb=0f1428e71dd43dc0b146d18a64aa51cd7ac832da;hp=23e548ad18bb29fe6e41e045f4d51fb2bf63e957;hpb=b82c6f4039d923a50790c88ee9a3663887923863;p=civicrm-core.git diff --git a/CRM/Core/BAO/PdfFormat.php b/CRM/Core/BAO/PdfFormat.php index 23e548ad18..60b7739a4b 100644 --- a/CRM/Core/BAO/PdfFormat.php +++ b/CRM/Core/BAO/PdfFormat.php @@ -306,7 +306,7 @@ class CRM_Core_BAO_PdfFormat extends CRM_Core_DAO_OptionValue { foreach (self::$optionValueFields as $name => $field) { if (!isset($values[$name])) { $values[$name] = $field['default']; - if (isset($field['metric']) && $field['metric']) { + if (!empty($field['metric'])) { $values[$name] = CRM_Utils_PDF_Utils::convertMetric($field['default'], self::$optionValueFields['metric']['default'], $values['metric'], 3