From bf6b3ca0eedc0a0743809badd605edf47424b8b3 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Tue, 19 Dec 2023 22:14:47 -0800 Subject: [PATCH] Fix PHP warning: trying to use null as array --- CRM/Case/XMLProcessor/Process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/XMLProcessor/Process.php b/CRM/Case/XMLProcessor/Process.php index a8e3984746..1cbc49dc64 100644 --- a/CRM/Case/XMLProcessor/Process.php +++ b/CRM/Case/XMLProcessor/Process.php @@ -263,7 +263,7 @@ class CRM_Case_XMLProcessor_Process extends CRM_Case_XMLProcessor { $maxInstances = (string) $recordXML->max_instances; $activityTypeInfo = $activityTypes[$activityTypeName] ?? NULL; - if ($activityTypeInfo['id']) { + if ($activityTypeInfo) { if ($maskAction) { if ($maskAction == 'edit' && '0' === (string) $recordXML->editable) { $result[$maskAction][] = $activityTypeInfo['id']; -- 2.25.1