From: Web Access Date: Thu, 18 Jun 2015 15:19:04 +0000 (+0530) Subject: Notice fix for CRM-14705 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fa5ddecd43c6cff85042bbc6007f8aa19aac25c2;p=civicrm-core.git Notice fix for CRM-14705 --- 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