From fa5ddecd43c6cff85042bbc6007f8aa19aac25c2 Mon Sep 17 00:00:00 2001 From: Web Access Date: Thu, 18 Jun 2015 20:49:04 +0530 Subject: [PATCH] Notice fix for CRM-14705 --- CRM/Core/BAO/PdfFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/PdfFormat.php b/CRM/Core/BAO/PdfFormat.php index 6778b5fa93..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 ($field['metric']) { + if (!empty($field['metric'])) { $values[$name] = CRM_Utils_PDF_Utils::convertMetric($field['default'], self::$optionValueFields['metric']['default'], $values['metric'], 3 -- 2.25.1