X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FPdfFormat.php;h=60b7739a4b3127b91125a7b1619cb68d0bc56515;hb=0f1428e71dd43dc0b146d18a64aa51cd7ac832da;hp=6f1fbced8408a51ec8a4f161f3965a6ffb5f6e9b;hpb=cda772aae0c600de9033d3360dfde772a2a78f64;p=civicrm-core.git diff --git a/CRM/Core/BAO/PdfFormat.php b/CRM/Core/BAO/PdfFormat.php index 6f1fbced84..60b7739a4b 100644 --- a/CRM/Core/BAO/PdfFormat.php +++ b/CRM/Core/BAO/PdfFormat.php @@ -29,7 +29,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -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