Merge pull request #16884 from civicrm/5.24
[civicrm-core.git] / CRM / Utils / PDF / Label.php
index 3094335223f41423348b66603402b62bdfed5ba3..c0b5d02b97eee1130d432293db36b0cee653a106 100644 (file)
@@ -190,7 +190,7 @@ class CRM_Utils_PDF_Label extends TCPDF {
       $metric = $this->format['metric'];
     }
     else {
-      $value = CRM_Utils_Array::value($name, $this->defaults);
+      $value = $this->defaults[$name] ?? NULL;
       $metric = $this->defaults['metric'];
     }
     if ($convert) {