From 89d817b63c768c7bbb1957770626335989093b21 Mon Sep 17 00:00:00 2001 From: Julian Egelstaff Date: Mon, 23 Sep 2024 10:21:35 -0400 Subject: [PATCH] Don't pass arrays to formatDataForList in Template Screens --- modules/formulize/class/templateScreen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/formulize/class/templateScreen.php b/modules/formulize/class/templateScreen.php index 8bbf522f7..74e10a8f5 100644 --- a/modules/formulize/class/templateScreen.php +++ b/modules/formulize/class/templateScreen.php @@ -275,7 +275,7 @@ function run_template_php_code($screen, $code_filename, $entry_id, $settings) { if(!isset($$elementHandlerType) AND file_exists(XOOPS_ROOT_PATH."/modules/formulize/class/".$elementHandlerType.".php")) { $$elementHandlerType = xoops_getmodulehandler($elementHandlerType, 'formulize'); } - if(isset($$elementHandlerType)) { + if(!is_array($$thisHandle) AND isset($$elementHandlerType)) { $$thisHandle = $$elementHandlerType->formatDataForList($$thisHandle, $thisHandle, $internalRecordIds[0], 0); } }