X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCustom%2FForm%2FCustomData.php;h=79c9d68c601c410d8ac044ba5704887041533e72;hb=a4934764e309b794d091a3a1448a36b6fe1367e8;hp=8d2803cce8c3903fcee250ebb7773d449eef44fc;hpb=f01582a07cfe8a8377055c75f6843a081db249b9;p=civicrm-core.git diff --git a/CRM/Custom/Form/CustomData.php b/CRM/Custom/Form/CustomData.php index 8d2803cce8..79c9d68c60 100644 --- a/CRM/Custom/Form/CustomData.php +++ b/CRM/Custom/Form/CustomData.php @@ -143,7 +143,7 @@ class CRM_Custom_Form_CustomData { $getCachedTree = $form->_getCachedTree ?? TRUE; $subType = $form->_subType; - if (!is_array($subType) && strstr($subType, CRM_Core_DAO::VALUE_SEPARATOR)) { + if (!is_array($subType) && strstr(($subType ?? ''), CRM_Core_DAO::VALUE_SEPARATOR)) { $subType = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, ',', trim($subType, CRM_Core_DAO::VALUE_SEPARATOR)); }