----------------------------------------
* CRM-16700: Notice pdfformat when creating pdf letters
https://issues.civicrm.org/jira/browse/CRM-16700
foreach (self::$optionValueFields as $name => $field) {
if (!isset($values[$name])) {
$values[$name] = $field['default'];
- if ($field['metric']) {
+ if (isset($field['metric']) && $field['metric']) {
$values[$name] = CRM_Utils_PDF_Utils::convertMetric($field['default'],
self::$optionValueFields['metric']['default'],
$values['metric'], 3