From 74474d25f34006dec3d7f0e6f9272030f74204b9 Mon Sep 17 00:00:00 2001 From: Julian Egelstaff Date: Sat, 5 Oct 2024 13:52:45 -0400 Subject: [PATCH] Bug fix: absent subfids need to be cast as array --- modules/formulize/admin/generateTemplateElementHandleHelp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/formulize/admin/generateTemplateElementHandleHelp.php b/modules/formulize/admin/generateTemplateElementHandleHelp.php index 213946144..5f5d03106 100644 --- a/modules/formulize/admin/generateTemplateElementHandleHelp.php +++ b/modules/formulize/admin/generateTemplateElementHandleHelp.php @@ -7,7 +7,7 @@ $allFids = $allFidsToUse; } elseif ($selectedFramework and isset($frameworks[$selectedFramework])) { $linkedForms = checkForLinks($selectedFramework, array($form_id), $form_id); - $allFids = array_merge($linkedForms['fids'], $linkedForms['sub_fids']); + $allFids = array_merge($linkedForms['fids'], (array) $linkedForms['sub_fids']); } else { $allFids = array(0=>$form_id); }