From a003d5f7912dfd81b79b30cf7830abee601546c7 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 2 Sep 2021 00:16:26 +0000 Subject: [PATCH] [NFC] Fix E-notice in Afform unit tests --- ext/afform/core/Civi/Api4/Action/Afform/Get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/Civi/Api4/Action/Afform/Get.php b/ext/afform/core/Civi/Api4/Action/Afform/Get.php index 3539d95e72..6a9ae6e681 100644 --- a/ext/afform/core/Civi/Api4/Action/Afform/Get.php +++ b/ext/afform/core/Civi/Api4/Action/Afform/Get.php @@ -56,7 +56,7 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { // Skip if afform does not exist or is not of requested type(s) if ( (!$record && !isset($values[$name])) || - ($getTypes && !in_array($record['type'], $getTypes, TRUE)) + ($getTypes && isset($record['type']) && !in_array($record['type'], $getTypes, TRUE)) ) { continue; } -- 2.25.1